The s6-chroot program
s6-chroot executes a program in a chroot jail.
s6-chroot newroot prog...
- s6-chroot sets the root filesystem for the current
process to newroot, which must be an existing directory.
- s6-chroot changes directory to this new root, and
with its arguments. prog is searched under the new root.
- s6-chroot's parent process is unaffected by the root change.