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 file-systems: Allow swap space lookup by UUID/label. 2020-10-30 01:14:20 +01:00
installer installer: Use UUIDs in the 'swap-devices' field. 2020-10-30 01:14:21 +01:00
machine system: Provide locale information to the bootloader. 2020-10-18 15:33:05 +02:00
packages pack: Relocatable wrapper leaves root available to child processes. 2020-10-31 23:16:43 +01:00
services services: guix-publish: Add 'cache-bypass-threshold' field. 2020-10-30 12:31:18 +01:00
system install: Deduplicate packages with %base-package sets. 2020-10-15 11:13:24 +03:00
tests installer: Use UUIDs in the 'swap-devices' field. 2020-10-30 01:14:21 +01:00
artwork.scm
bootloader.scm
ci.scm
image.scm
installer.scm installer: Call setlocale after init gettext. 2020-10-18 17:55:40 +02:00
local.mk gnu: sbcl-geco: Fix build. 2020-10-31 18:01:00 +01:00
machine.scm
packages.scm
services.scm services: provenance: Wrap config file name in 'assume-valid-file-name'. 2020-10-16 15:00:50 +02:00
system.scm system: Provide locale information to the bootloader. 2020-10-18 15:33:05 +02:00
tests.scm