| /linux/Documentation/userspace-api/ |
| A D | unshare.rst | 1 unshare system call 4 This document describes the new system call, unshare(). The document 61 where unshare() can be used. 89 ability to unshare() after the process was created can be very 111 be shared, similar flags in unshare(int flags) should specify 131 int unshare(int flags); 192 directly by unshare() because of the following two reasons. 239 b) unshare() system call service function 259 7.2) unshare() system call service function 299 The test for unshare() should test the following: [all …]
|
| A D | index.rst | 22 unshare
|
| /linux/tools/testing/selftests/pid_namespace/ |
| A D | regression_enomem.c | 27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST() 29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
|
| /linux/tools/testing/selftests/mount/ |
| A 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()
|
| A D | nosymfollow-test.c | 99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns() 111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
|
| /linux/tools/testing/selftests/proc/ |
| A D | setns-dcache.c | 54 if (unshare(CLONE_NEWNET) == -1) { in main() 75 if (unshare(CLONE_NEWNET) == -1) { in main()
|
| A D | setns-sysvipc.c | 53 if (unshare(CLONE_NEWIPC) == -1) { in main() 74 if (unshare(CLONE_NEWIPC) == -1) { in main()
|
| A D | proc-loadavg-001.c | 30 if (unshare(CLONE_NEWPID) == -1) { in main()
|
| A D | proc-subset-pid.c | 42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc()
|
| /linux/tools/testing/selftests/uevent/ |
| A D | uevent_filtering.c | 128 ret = unshare(CLONE_NEWUSER); in uevent_listener() 138 ret = unshare(CLONE_NEWNET); in uevent_listener() 274 ret = unshare(CLONE_NEWUSER); in do_test() 284 ret = unshare(CLONE_NEWNET); in do_test()
|
| /linux/tools/testing/selftests/nsfs/ |
| A D | owner.c | 42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main() 81 if (unshare(CLONE_NEWUSER)) in main()
|
| /linux/tools/testing/selftests/bpf/ |
| A D | test_flow_dissector.sh | 28 if ! unshare --net $bpftool prog attach pinned \ 37 if unshare --net $bpftool prog attach pinned \
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| A D | move_mount_set_group_test.c | 85 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns() 115 if (unshare(CLONE_NEWNS)) in prepare_unpriv_mountns()
|
| /linux/tools/testing/selftests/tmpfs/ |
| A D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) { in main()
|
| /linux/tools/testing/selftests/exec/ |
| A D | recursion-depth.c | 29 if (unshare(CLONE_NEWNS) == -1) { in main()
|
| /linux/tools/testing/selftests/net/ |
| A D | so_netns_cookie.c | 41 if (unshare(CLONE_NEWNET)) in main()
|
| /linux/tools/testing/selftests/timens/ |
| A D | timens.h | 56 if (unshare(CLONE_NEWTIME)) { in unshare_timens()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| A D | mount_setattr_test.c | 203 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns() 233 if (unshare(CLONE_NEWNS)) in prepare_unpriv_mountns() 996 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F() 1010 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in FIXTURE_SETUP() 1290 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F() 1351 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F()
|
| /linux/samples/binderfs/ |
| A D | binderfs_example.c | 23 ret = unshare(CLONE_NEWNS); in main()
|
| /linux/tools/testing/selftests/capabilities/ |
| A 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/tools/testing/selftests/openat2/ |
| A D | helpers.h | 85 #define E_unshare(...) E_func(unshare, __VA_ARGS__)
|
| /linux/tools/testing/selftests/pidfd/ |
| A D | pidfd_test.c | 164 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail() 175 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
|
| /linux/tools/testing/selftests/firmware/ |
| A D | fw_namespace.c | 101 if (unshare(CLONE_NEWNS) != 0) { in test_fw_in_ns()
|
| /linux/tools/perf/util/ |
| A D | sideband_evlist.c | 47 unshare(CLONE_FS); in perf_evlist__poll_thread()
|
| /linux/tools/testing/selftests/rlimits/ |
| A D | rlimits-per-userns.c | 73 if (unshare(CLONE_NEWUSER) < 0) in fork_child()
|