Commit Graph

8 Commits

Author SHA1 Message Date
Juan RP
52dae50075 xbps-uunshare: replace clone/exec with unshare/exec cmd.
There's no reason to clone and run cmd in the child, replace the
execution environment with cmd directly to avoid the child process.
2015-03-13 21:14:28 +01:00
Juan RP
519ea4001c xbps-uunshare: fix typo in an error msg (thanks uggedal). 2015-03-12 19:05:05 +01:00
Juan RP
301b6d220e xbps-uunshare: fix previous (15977278). 2015-03-09 12:45:32 +01:00
Juan RP
1597727814 xbps-uunshare: do not fail if /proc/self/setgroups does not exist.
3.16 supports user_namespaces(7) but does not have /proc/self/setgroups.

Found by @cheneukirchen.
2015-03-09 12:34:57 +01:00
Juan RP
77e83d4b17 xbps-uunshare: for compat with uchroot, use the uid/gid of the calling process.
... rather than setting this up for uid/gid 0.
2015-03-06 07:39:31 +01:00
Juan RP
3da2c3fdda xbps-uunshare: silence a clang warning. 2015-03-05 19:24:33 +01:00
Juan RP
26944cf6be xbps-uunshare: chdir to the correct dir for bind mounts. 2015-03-05 19:06:39 +01:00
Juan RP
58e6d71d24 New utility: xbps-uunshare(8) - like xbps-uchroot(8) with user_namespaces(7). 2015-03-05 18:44:20 +01:00