Skip to content

Commit 947aafd

Browse files
committed
Use different privdrop command that does not reset environment
1 parent 03a9737 commit 947aafd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python3/bin/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ then
3232
echo "Switching to user $RUNAS_UID and group $RUNAS_GID"
3333
groupadd -g $RUNAS_GID openconext
3434
useradd -M -u $RUNAS_UID -g $RUNAS_GID openconext
35-
PRIVDROP="setpriv --reuid=openconext --regid=openconext --reset-env --clear-groups"
35+
PRIVDROP="runuser --user=openconext --group=openconext -- "
3636
else
3737
echo "Switching to user $RUNAS_UID"
3838
useradd -M -u $RUNAS_UID openconext
39-
PRIVDROP="setpriv --reuid=openconext --reset-env --clear-groups"
39+
PRIVDROP="runuser --user=openconext -- "
4040
fi
4141
echo "Dropping privileges to $($PRIVDROP id -u):$($PRIVDROP id -g)"
4242

0 commit comments

Comments
 (0)