guix/nix/libstore
Harald van Dijk 638f3675e1 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-06-03 21:39:02 +02:00
..
build.cc Use pivot_root in addition to chroot when possible 2015-06-03 21:39:02 +02:00
derivations.cc
derivations.hh
gc.cc Ensure we're writing to stderr in the builder 2015-06-03 18:05:33 +02:00
globals.cc Settings: Add bool get() 2015-05-11 17:32:30 +02:00
globals.hh Settings: Add bool get() 2015-05-11 17:32:30 +02:00
local-store.cc Doh^2 2015-06-03 18:30:50 +02:00
local-store.hh Clean up temp roots in a more C++ way 2015-05-11 17:40:44 +02:00
misc.cc
misc.hh
optimise-store.cc Pedantry 2015-06-03 18:16:31 +02:00
pathlocks.cc Ensure we're writing to stderr in the builder 2015-06-03 18:05:33 +02:00
pathlocks.hh
references.cc
references.hh
remote-store.cc Explicitly include required C headers 2015-06-03 18:15:57 +02:00
remote-store.hh Add an 'optimiseStore' remote procedure call. 2015-05-11 17:31:02 +02:00
schema.sql
store-api.cc
store-api.hh Add an 'optimiseStore' remote procedure call. 2015-05-11 17:31:02 +02:00
worker-protocol.hh Add an 'optimiseStore' remote procedure call. 2015-05-11 17:31:02 +02:00