Searched refs:CLONE_NEWNS (Results 1 - 25 of 31) sorted by relevance

12

/linux-master/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/kernel/
H A Dnsproxy.c157 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 Dunprivileged-remount-test.c19 #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 Dnosymfollow-test.c111 if (unshare(CLONE_NEWNS) != 0)
112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
/linux-master/include/uapi/linux/
H A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/linux-master/tools/include/uapi/linux/
H A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/linux-master/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c20 #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 Drecursion-depth.c35 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/samples/binderfs/
H A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/proc/
H A Dproc-subset-pid.c42 if (unshare(CLONE_NEWNS) == -1) {
H A Dproc-pid-vm.c58 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/tools/testing/selftests/firmware/
H A Dfw_namespace.c97 if (unshare(CLONE_NEWNS) != 0) {
98 die("unshare(CLONE_NEWNS) failed: %s\n",
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dconnect_ping.c101 if (!ASSERT_OK(unshare(CLONE_NEWNET | CLONE_NEWNS), "unshare"))
H A Dtest_bpffs.c39 err = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/filesystems/overlayfs/
H A Ddev_in_maps.c168 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/tools/perf/util/
H A Dnamespaces.c306 if (setns(newns, CLONE_NEWNS) < 0)
327 setns(nc->oldns, CLONE_NEWNS);
/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c91 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 Dmount_setattr_test.c25 #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 Dpidfd_setns_test.c42 [PIDFD_NS_MNT] = { "mnt", CLONE_NEWNS, },
178 CLONE_NEWUSER | CLONE_NEWNS |
207 CLONE_NEWUSER | CLONE_NEWNS |
H A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD;
H A Dpidfd_test.c176 ret = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c210 if (unshare(CLONE_NEWNS)) {
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c43 ret = unshare(CLONE_NEWNS);
/linux-master/drivers/base/
H A Ddevtmpfs.c416 err = ksys_unshare(CLONE_NEWNS);

Completed in 364 milliseconds

12