guix/gnu
Ludovic Courtès bfe82fe2f6
pack: Relocatable wrapper leaves root available to child processes.
Fixes <https://bugs.gnu.org/44261>.
Reported by Jan Nieuwenhuizen <janneke@gnu.org>.

* gnu/packages/aux-files/run-in-namespace.c (exec_in_user_namespace):
Add call to 'prctl'.  Call 'mount' for NEW_ROOT and define 'is_tmpfs'.
When IS_TMPFS is true, call 'umount' and 'rmdir' after 'waitpid';
otherwise, call 'rm_rf' only when 'waitpid' returns -1 the second time.
(exec_with_loader): Call 'prctl'.  Remove NEW_ROOT only when 'waitpid'
returns -1 the second time, otherwise leave it behind.
* tests/guix-pack-relocatable.sh (wait_for_file): New function.
Add test.
2020-10-31 23:16:43 +01:00
..
bootloader system: Fix dependency for grub.cfg generation. 2020-10-30 22:34:03 +01:00
build
installer
machine
packages pack: Relocatable wrapper leaves root available to child processes. 2020-10-31 23:16:43 +01:00
services
system
tests
artwork.scm
bootloader.scm
ci.scm
image.scm
installer.scm
local.mk gnu: sbcl-geco: Fix build. 2020-10-31 18:01:00 +01:00
machine.scm
packages.scm
services.scm
system.scm
tests.scm