Home
last modified time | relevance | path

Searched refs:CLONE_NEWNS (Results 1 – 25 of 29) sorted by relevance

12

/linux/kernel/
A Dnsproxy.c157 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces()
217 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces()
259 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in check_setns_flags()
306 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) in put_nsset()
328 if (flags == CLONE_NEWNS) { in prepare_nsset()
330 } else if (flags & CLONE_NEWNS) { in prepare_nsset()
420 if (flags & CLONE_NEWNS) { in validate_nsset()
507 if ((flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) { in commit_nsset()
A Dfork.c1944 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2949 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND| in check_unshare_flags()
3053 if (unshare_flags & CLONE_NEWNS) in ksys_unshare()
/linux/tools/testing/selftests/mount/
A Dunprivileged-remount-test.c19 #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()
A Dnosymfollow-test.c111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
/linux/tools/testing/selftests/firmware/
A Dfw_namespace.c20 #ifndef CLONE_NEWNS
21 # define CLONE_NEWNS 0x00020000 macro
101 if (unshare(CLONE_NEWNS) != 0) { in test_fw_in_ns()
/linux/tools/testing/selftests/move_mount_set_group/
A Dmove_mount_set_group_test.c20 #ifndef CLONE_NEWNS
21 #define CLONE_NEWNS 0x00020000 macro
115 if (unshare(CLONE_NEWNS)) in prepare_unpriv_mountns()
371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
/linux/tools/perf/util/
A Dnamespaces.c240 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
261 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c24 #ifndef CLONE_NEWNS
25 #define CLONE_NEWNS 0x00020000 macro
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/tools/testing/selftests/tmpfs/
A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/linux/tools/testing/selftests/exec/
A Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/linux/tools/include/uapi/linux/
A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/linux/include/uapi/linux/
A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/linux/samples/binderfs/
A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS); in main()
/linux/tools/testing/selftests/proc/
A Dproc-subset-pid.c42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc()
A Dproc-pid-vm.c56 if (unshare(CLONE_NEWNS) == -1) { in make_private_tmp()
/linux/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c42 [PIDFD_NS_MNT] = { "mnt", CLONE_NEWNS, },
178 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP()
207 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP()
A Dpidfd_fdinfo_test.c91 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
A Dpidfd_test.c175 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
/linux/tools/testing/selftests/capabilities/
A Dtest_execve.c103 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/Documentation/userspace-api/
A Dunshare.rst157 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/tools/testing/selftests/bpf/prog_tests/
A Dtest_bpffs.c36 err = unshare(CLONE_NEWNS); in fn()
/linux/tools/testing/selftests/filesystems/
A Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS); in main()
/linux/tools/testing/selftests/bpf/
A Dcgroup_helpers.c113 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
/linux/drivers/base/
A Ddevtmpfs.c412 err = ksys_unshare(CLONE_NEWNS); in devtmpfs_setup()
/linux/tools/testing/selftests/filesystems/binderfs/
A Dbinderfs_test.c43 ret = unshare(CLONE_NEWNS); in change_mountns()

Completed in 42 milliseconds

12