This is a small program that ensures the needed runtime directory for
s6-overlay
exists and
is owned by the current user.
This should enable s6-overlay
users to use the USER
directive in their
dockerfiles. This binary needs the SETUID
bit enabled so it can
gain privileges to create the /var/run/s6
directory.
s6-overlay-preinit (prog)
This will:
- Create
/var
. - Create
/var/run
. - Create
/var/run/s6
. chown
/var/run/s6
to the current UID/GID (set if usingUSER
directive).
ISC - see LICENSE.md