[info=af6f67332e13f58210f890f05c1fd249]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/mariadb-image?expand=0&rev=26
This commit is contained in:
2024-03-25 12:09:37 +00:00
committed by Git OBS Bridge
parent 06731744cf
commit 9e0947d83f
4 changed files with 376 additions and 1 deletions

11
gosu Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
u=$1
shift
if ! id -u $u > /dev/null 2>&1; then
echo "Invalid user: $u"
exit 1
fi
setpriv --reuid=$u --regid=$u --clear-groups -- /bin/bash "$@"