aboutsummaryrefslogtreecommitdiff
path: root/toys/other/nsenter.c
AgeCommit message (Collapse)Author
2016-01-27long opts and -f for unshareizabera
2015-09-29Make defconfig build for nommu.Rob Landley
Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some unconverted commands.
2015-04-12unshare: fix -rSamuel Holland
Calling unshare(2) immediately puts us in the new namespace with the "overflow" user and group ID. By calling geteuid() and getegid() in handle_r() after calling unshare(), we try to map that to root, which Linux refuses to let us do. What we really want to map to root is the caller's uid/gid in the original namespace. So we have to save them before calling unshare().
2015-03-12Switch nsenter to default y.Rob Landley
2015-02-18Patch from Isaac Dunham to add -r, fixed up so it doesn't try to include two ↵Rob Landley
flag contexts simultaneously.
2015-02-07Make toy_exec() check if argc is in optargs and deal with it there so we ↵Rob Landley
don't need a separate xexec_optargs().
2015-02-07Merge unshare and nsenter (promoting and cleaning up nsenter).Rob Landley
Needs more testing, don't have a test environment set up for this yet...