Lines Matching refs:unshare
7 * unshare.c - run command in new context
11 * See http://man7.org/linux/man-pages/man1/unshare.1.html
16 USE_UNSHARE(NEWTOY(unshare, "<1^f(fork);r(map-root-user);i:(ipc);m:(mount);n:(net);p:(pid);u:(uts);U:(user);", TOYFLAG_USR|TOYFLAG_BIN))
18 config UNSHARE
19 bool "unshare"
23 usage: unshare [-imnpuUr] COMMAND...
68 int unshare(int flags);
76 // Code that must run in unshare's flag context
125 // For -r, we have to save our original [ug]id before calling unshare()
128 // unshare -U does not imply -r, so we cannot use [+rU]
134 if (unshare(f)) perror_exit(0);