/linux-master/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) {
|
/linux-master/kernel/ |
H A D | nsproxy.c | 157 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | 219 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | 278 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | 325 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) 347 if (flags == CLONE_NEWNS) { 349 } else if (flags & CLONE_NEWNS) { 439 if (flags & CLONE_NEWNS) { 526 if ((flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) { [all...] |
/linux-master/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 19 #ifndef CLONE_NEWNS 20 # define CLONE_NEWNS 0x00020000 macro 211 if (unshare(CLONE_NEWNS) != 0) { 212 die("unshare(CLONE_NEWNS) failed: %s\n", 225 if (unshare(CLONE_NEWNS) != 0) { 226 die("unshare(CLONE_NEWNS) failed: %s\n", 291 ret = unshare(CLONE_NEWNS); 293 die("unshare(CLONE_NEWNS) failed: %s\n",
|
H A D | nosymfollow-test.c | 111 if (unshare(CLONE_NEWNS) != 0) 112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
|
/linux-master/include/uapi/linux/ |
H A D | sched.h | 20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
|
/linux-master/tools/include/uapi/linux/ |
H A D | sched.h | 20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
|
/linux-master/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 20 #ifndef CLONE_NEWNS 21 #define CLONE_NEWNS 0x00020000 macro 115 if (unshare(CLONE_NEWNS)) 371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0);
|
/linux-master/tools/testing/selftests/exec/ |
H A D | recursion-depth.c | 35 if (unshare(CLONE_NEWNS) == -1) {
|
/linux-master/samples/binderfs/ |
H A D | binderfs_example.c | 23 ret = unshare(CLONE_NEWNS);
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 42 if (unshare(CLONE_NEWNS) == -1) {
|
H A D | proc-pid-vm.c | 58 if (unshare(CLONE_NEWNS) == -1) {
|
/linux-master/tools/testing/selftests/firmware/ |
H A D | fw_namespace.c | 97 if (unshare(CLONE_NEWNS) != 0) { 98 die("unshare(CLONE_NEWNS) failed: %s\n",
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | connect_ping.c | 101 if (!ASSERT_OK(unshare(CLONE_NEWNET | CLONE_NEWNS), "unshare"))
|
H A D | test_bpffs.c | 39 err = unshare(CLONE_NEWNS);
|
/linux-master/tools/testing/selftests/filesystems/overlayfs/ |
H A D | dev_in_maps.c | 168 if (unshare(CLONE_NEWNS) == -1) {
|
/linux-master/tools/perf/util/ |
H A D | namespaces.c | 306 if (setns(newns, CLONE_NEWNS) < 0) 327 setns(nc->oldns, CLONE_NEWNS);
|
/linux-master/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 91 if (outer_uid == 0 && unshare(CLONE_NEWNS) == 0) { 109 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) {
|
/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 25 #ifndef CLONE_NEWNS 26 #define CLONE_NEWNS 0x00020000 macro 227 if (unshare(CLONE_NEWNS)) 990 ASSERT_EQ(unshare(CLONE_NEWNS), 0); 1004 ASSERT_EQ(unshare(CLONE_NEWNS), 0); 1284 ASSERT_EQ(unshare(CLONE_NEWNS), 0); 1345 ASSERT_EQ(unshare(CLONE_NEWNS), 0);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 42 [PIDFD_NS_MNT] = { "mnt", CLONE_NEWNS, }, 178 CLONE_NEWUSER | CLONE_NEWNS | 207 CLONE_NEWUSER | CLONE_NEWNS |
|
H A D | pidfd_fdinfo_test.c | 95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD;
|
H A D | pidfd_test.c | 176 ret = unshare(CLONE_NEWNS);
|
/linux-master/tools/testing/selftests/filesystems/ |
H A D | devpts_pts.c | 290 ret = unshare(CLONE_NEWNS);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 210 if (unshare(CLONE_NEWNS)) {
|
/linux-master/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 43 ret = unshare(CLONE_NEWNS);
|
/linux-master/drivers/base/ |
H A D | devtmpfs.c | 416 err = ksys_unshare(CLONE_NEWNS);
|