lix/src
Harald van Dijk 5451b8db9d Use pivot_root in addition to chroot when possible
chroot only changes the process root directory, not the mount namespace root
directory, and it is well-known that any process with chroot capability can
break out of a chroot "jail". By using pivot_root as well, and unmounting the
original mount namespace root directory, breaking out becomes impossible.

Non-root processes typically have no ability to use chroot() anyway, but they
can gain that capability through the use of clone() or unshare(). For security
reasons, these syscalls are limited in functionality when used inside a normal
chroot environment. Using pivot_root() this way does allow those syscalls to be
put to their full use.
2015-02-16 12:18:19 +01:00
..
boost
bsdiff-4.3
download-via-ssh
libexpr Remove tab 2015-02-05 17:21:30 +01:00
libmain
libstore Use pivot_root in addition to chroot when possible 2015-02-16 12:18:19 +01:00
libutil Add base64 encoder/decoder 2015-02-10 11:33:33 +01:00
nix-daemon
nix-env
nix-hash
nix-instantiate
nix-log2xml
nix-store Make libsodium an optional dependency 2015-02-10 11:54:06 +01:00