s6-linux-utils: the s6-chroot program
Keywords: s6-linux-utils linux utilities chroot

s6-linux-utils
Software
skarnet.org

# The `s6-chroot` program

`s6-chroot` executes a program in a chroot jail.

## Interface

         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 executes prog with its arguments. prog is searched under the new root.
- s6-chroot's parent process is unaffected by the root change.