Searched refs:unshare (Results 1 – 25 of 46) sorted by relevance
12
/Linux-v5.4/Documentation/userspace-api/ |
D | unshare.rst | 1 unshare system call 4 This document describes the new system call, unshare(). The document 42 unshare() system call adds a primitive to the Linux thread model that 43 allows threads to selectively 'unshare' any resources that were being 44 shared at the time of their creation. unshare() was conceptualized by 46 of the discussion on POSIX threads on Linux. unshare() augments the 48 shared resources without creating a new process. unshare() is a natural 55 unshare() would be useful to large application frameworks such as PAM 58 when creating a new process using fork or clone, unshare() can benefit 61 where unshare() can be used. [all …]
|
D | index.rst | 21 unshare
|
D | no_new_privs.rst | 61 several options to ``unshare(2)`` and ``clone(2)`` would be safe when
|
/Linux-v5.4/tools/testing/selftests/proc/ |
D | setns-dcache.c | 54 if (unshare(CLONE_NEWNET) == -1) { in main() 75 if (unshare(CLONE_NEWNET) == -1) { in main()
|
D | setns-sysvipc.c | 53 if (unshare(CLONE_NEWIPC) == -1) { in main() 74 if (unshare(CLONE_NEWIPC) == -1) { in main()
|
D | proc-loadavg-001.c | 31 if (unshare(CLONE_NEWPID) == -1) { in main()
|
D | fd-001-lookup.c | 104 if (unshare(CLONE_FILES) == -1) in main()
|
D | proc-pid-vm.c | 56 if (unshare(CLONE_NEWNS) == -1) { in make_private_tmp()
|
/Linux-v5.4/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 162 if (unshare(CLONE_NEWUSER) !=0) { in create_and_enter_userns() 211 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount() 225 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount() 291 ret = unshare(CLONE_NEWNS); in test_priv_mount_unpriv_remount()
|
/Linux-v5.4/tools/testing/selftests/nsfs/ |
D | owner.c | 42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main() 81 if (unshare(CLONE_NEWUSER)) in main()
|
/Linux-v5.4/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 129 ret = unshare(CLONE_NEWUSER); in uevent_listener() 139 ret = unshare(CLONE_NEWNET); in uevent_listener() 275 ret = unshare(CLONE_NEWUSER); in do_test() 285 ret = unshare(CLONE_NEWNET); in do_test()
|
/Linux-v5.4/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 81 ret = unshare(CLONE_NEWUSER); in change_to_userns() 117 ret = unshare(CLONE_NEWNS); in change_to_mountns()
|
/Linux-v5.4/tools/testing/selftests/tmpfs/ |
D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/Linux-v5.4/tools/testing/selftests/exec/ |
D | recursion-depth.c | 29 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/Linux-v5.4/samples/binderfs/ |
D | binderfs_example.c | 24 ret = unshare(CLONE_NEWNS); in main()
|
/Linux-v5.4/tools/testing/selftests/capabilities/ |
D | test_execve.c | 103 if (unshare(CLONE_NEWNS) == 0) { in create_and_enter_ns() 121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
|
/Linux-v5.4/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 140 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail() 145 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 105 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
|
/Linux-v5.4/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 290 ret = unshare(CLONE_NEWNS); in main()
|
/Linux-v5.4/fs/lockd/ |
D | svc4proc.c | 546 PROC(unshare, shareargs, shareres, args, res, Ck+St+1),
|
D | svcproc.c | 590 PROC(unshare, shareargs, shareres, args, res, Ck+St+1),
|
/Linux-v5.4/arch/mips/kernel/syscalls/ |
D | syscall_n32.tbl | 277 266 n32 unshare sys_unshare
|
D | syscall_n64.tbl | 273 262 n64 unshare sys_unshare
|
/Linux-v5.4/arch/ia64/kernel/syscalls/ |
D | syscall.tbl | 284 272 common unshare sys_unshare
|
/Linux-v5.4/tools/perf/ |
D | builtin-top.c | 624 unshare(CLONE_FS); in display_thread_tui() 676 unshare(CLONE_FS); in display_thread()
|
12