me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu/packages/aux-files
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
..
chromium
emacs
linux-libre gnu: linux-libre: Update to 5.9.2. 2020-10-30 15:17:48 -04:00
guile-launcher.c self: Use a 'guile' that doesn't complain about locales. 2020-10-05 23:19:19 +02:00
pack-audit.c pack: Add relocation via ld.so and fakechroot. 2020-05-14 17:21:27 +02:00
run-in-namespace.c pack: Relocatable wrapper leaves root available to child processes. 2020-10-31 23:16:43 +01:00