Lines Matching defs: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))
19 bool "unshare"
23 usage: unshare [-imnpuUr] COMMAND...
70 #define unshare(flags) syscall(SYS_unshare, flags)
78 // Code that must run in unshare's flag context
127 // For -r, we have to save our original [ug]id before calling unshare()
130 // unshare -U does not imply -r, so we cannot use [+rU]
136 if (unshare(f)) perror_exit(0);