/Linux-v5.10/kernel/ |
D | nsproxy.c | 158 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces() 222 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces() 264 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in check_setns_flags() 311 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) in put_nsset() 333 if (flags == CLONE_NEWNS) { in prepare_nsset() 335 } else if (flags & CLONE_NEWNS) { in prepare_nsset() 425 if (flags & CLONE_NEWNS) { in validate_nsset() 512 if ((flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) { in commit_nsset()
|
D | fork.c | 1859 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process() 2823 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND| in check_unshare_flags() 2927 if (unshare_flags & CLONE_NEWNS) in ksys_unshare()
|
/Linux-v5.10/tools/testing/selftests/firmware/ |
D | fw_namespace.c | 20 #ifndef CLONE_NEWNS 21 # define CLONE_NEWNS 0x00020000 macro 101 if (unshare(CLONE_NEWNS) != 0) { in test_fw_in_ns()
|
/Linux-v5.10/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 19 #ifndef CLONE_NEWNS 20 # define CLONE_NEWNS 0x00020000 macro 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()
|
D | nosymfollow-test.c | 111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
|
/Linux-v5.10/tools/testing/selftests/tmpfs/ |
D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/Linux-v5.10/tools/testing/selftests/exec/ |
D | recursion-depth.c | 29 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/Linux-v5.10/tools/perf/util/ |
D | namespaces.c | 233 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter() 254 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
|
/Linux-v5.10/include/uapi/linux/ |
D | sched.h | 20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | sched.h | 20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
|
/Linux-v5.10/samples/binderfs/ |
D | binderfs_example.c | 23 ret = unshare(CLONE_NEWNS); in main()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | test_bpffs.c | 34 err = unshare(CLONE_NEWNS); in fn()
|
/Linux-v5.10/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.10/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 42 [PIDFD_NS_MNT] = { "mnt", CLONE_NEWNS, }, 178 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP() 207 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP()
|
D | pidfd_fdinfo_test.c | 91 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
|
D | pidfd_test.c | 175 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_current_pid_tgid_new_ns.c | 45 if (CHECK_NEWNS(unshare(CLONE_NEWPID | CLONE_NEWNS), in main()
|
D | cgroup_helpers.c | 105 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
|
/Linux-v5.10/Documentation/userspace-api/ |
D | unshare.rst | 157 CLONE_NEWNS 158 If CLONE_NEWNS is set, the namespace of the caller is 169 EPERM CLONE_NEWNS was specified by a non-root process (process 266 CLONE_NEWNS is set, force CLONE_FS.
|
/Linux-v5.10/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 290 ret = unshare(CLONE_NEWNS); in main()
|
/Linux-v5.10/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 56 if (unshare(CLONE_NEWNS) == -1) { in make_private_tmp()
|
/Linux-v5.10/drivers/base/ |
D | devtmpfs.c | 409 err = ksys_unshare(CLONE_NEWNS); in devtmpfs_setup()
|
/Linux-v5.10/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 43 ret = unshare(CLONE_NEWNS); in change_mountns()
|
/Linux-v5.10/tools/testing/selftests/openat2/ |
D | resolve_test.c | 53 E_unshare(CLONE_NEWNS); in setup_testdir()
|
/Linux-v5.10/fs/ |
D | namespace.c | 3299 if (likely(!(flags & CLONE_NEWNS))) { in copy_mnt_ns() 4102 .type = CLONE_NEWNS,
|