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

12

/linux-master/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/drivers/base/
H A Ddevtmpfs.c416 err = ksys_unshare(CLONE_NEWNS);
/linux-master/fs/
H A Dnamespace.c3772 if (likely(!(flags & CLONE_NEWNS))) {
5444 .type = CLONE_NEWNS,
/linux-master/include/uapi/linux/
H A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/linux-master/kernel/
H A Dfork.c2151 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
3197 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND|
3301 if (unshare_flags & CLONE_NEWNS)
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/samples/binderfs/
H A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS);
/linux-master/tools/include/uapi/linux/
H A Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/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/bpf/
H A Dcgroup_helpers.c210 if (unshare(CLONE_NEWNS)) {
/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);
H A Dtoken.c307 err = unshare(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/exec/
H A Drecursion-depth.c35 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c43 ret = unshare(CLONE_NEWNS);
/linux-master/tools/testing/selftests/filesystems/overlayfs/
H A Ddev_in_maps.c168 if (unshare(CLONE_NEWNS) == -1) {
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c140 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER);
/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/landlock/
H A Dfs_test.c269 ASSERT_EQ(0, unshare(CLONE_NEWNS | CLONE_NEWCGROUP));
/linux-master/tools/testing/selftests/mount/
H A Dnosymfollow-test.c111 if (unshare(CLONE_NEWNS) != 0)
112 die("unshare(CLONE_NEWNS) failed: %s\n", strerror(errno));
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",
/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/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);

Completed in 314 milliseconds

12