Remove prviliges drop when you never ran as root (#34837)
This commit is contained in:
@@ -42,4 +42,6 @@ if [ -d /run/service/.s6-svscan ]; then
|
||||
done
|
||||
fi
|
||||
|
||||
# Skip the drop when already non-root.
|
||||
[ "$(id -u)" = 0 ] || exec /opt/hermes/.venv/bin/python -m hermes_cli.container_boot
|
||||
exec s6-setuidgid hermes /opt/hermes/.venv/bin/python -m hermes_cli.container_boot
|
||||
|
||||
Reference in New Issue
Block a user