pack: Relocatable wrapper now properly maps the current UID/GID.
authorLudovic Courtès <ludovic.courtes@inria.fr>
Fri, 11 May 2018 14:41:35 +0000 (16:41 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 11 May 2018 16:42:42 +0000 (18:42 +0200)
commit30da3173d5ee69777d0e1de4f9c977dea72e8a77
tree8a84503e606c2b97469d66160bf071fbac66e64e
parent10673d150f5d374081d1d993b936370cda31b0ad
pack: Relocatable wrapper now properly maps the current UID/GID.

* gnu/packages/aux-files/run-in-namespace.c (write_id_map)
(disallow_setgroups): New functions.
(main): Use 'clone' via 'syscall' instead of 'fork' followed by
'unshare'.  Add calls to 'disallow_setgroups' and 'write_id_map' in the
parent process.
gnu/packages/aux-files/run-in-namespace.c