/kernel/linux/linux-5.10/kernel/ |
H A D | nsproxy.c | 159 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces() 223 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces() 270 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in check_setns_flags() 317 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) in put_nsset() 339 if (flags == CLONE_NEWNS) { in prepare_nsset() 341 } else if (flags & CLONE_NEWNS) { in prepare_nsset() 431 if (flags & CLONE_NEWNS) { in validate_nsset() 518 if ((flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) { in commit_nsset() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | nsproxy.c | 158 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces() 220 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces() 284 if (!flags || (flags & ~(CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in check_setns_flags() 331 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) in put_nsset() 353 if (flags == CLONE_NEWNS) { in prepare_nsset() 355 } else if (flags & CLONE_NEWNS) { in prepare_nsset() 445 if (flags & CLONE_NEWNS) { in validate_nsset() 532 if ((flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) { in commit_nsset() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/firmware/ |
H A 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() 102 die("unshare(CLONE_NEWNS) failed: %s\n", in test_fw_in_ns()
|
/kernel/linux/linux-6.6/tools/testing/selftests/firmware/ |
H A 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() 102 die("unshare(CLONE_NEWNS) failed: %s\n", in test_fw_in_ns()
|
/kernel/linux/linux-6.6/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)) in prepare_unpriv_mountns() 371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
|
/kernel/linux/linux-5.10/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) { in test_unpriv_remount() 212 die("unshare(CLONE_NEWNS) failed: %s\n", in test_unpriv_remount() 225 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount() 226 die("unshare(CLONE_NEWNS) failed: %s\n", in test_unpriv_remount() 291 ret = unshare(CLONE_NEWNS); in test_priv_mount_unpriv_remount() 293 die("unshare(CLONE_NEWNS) failed: %s\n", in test_priv_mount_unpriv_remount()
|
/kernel/linux/linux-6.6/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) { in test_unpriv_remount() 212 die("unshare(CLONE_NEWNS) failed: %s\n", in test_unpriv_remount() 225 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount() 226 die("unshare(CLONE_NEWNS) failed: %s\n", in test_unpriv_remount() 291 ret = unshare(CLONE_NEWNS); in test_priv_mount_unpriv_remount() 293 die("unshare(CLONE_NEWNS) failed: %s\n", in test_priv_mount_unpriv_remount()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_mnt_container_010.cpp | 44 int ret = unshare(CLONE_NEWNS); in childFunc() 80 auto pid1 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer010()
|
H A D | It_mnt_container_009.cpp | 76 auto pid1 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009() 79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009()
|
H A D | It_mnt_container_008.cpp | 56 int setFlag = CLONE_NEWNS; in ItMntContainer008() 62 childPid = clone(ChildFun, (char *)pstk + STACK_SIZE, CLONE_NEWNS, nullptr); in ItMntContainer008()
|
H A D | It_mnt_container_005.cpp | 42 ret = unshare(CLONE_NEWNS); in MntContainerUnshare()
|
H A D | It_mnt_container_002.cpp | 87 auto pid = clone(ChildFunc, stackTop, CLONE_NEWNS, &arg); in ItMntContainer002()
|
H A D | It_mnt_container_004.cpp | 71 auto pid = clone(ChildFunc, stackTop, CLONE_NEWNS, &arg); in ItMntContainer004()
|
H A D | It_mnt_container_006.cpp | 46 ret = unshare(CLONE_NEWNS); in ChildFunc()
|
H A D | It_mnt_container_007.cpp | 42 ret = unshare(CLONE_NEWNS); in ChildFunc()
|
/kernel/liteos_a/kernel/extended/container/ |
H A D | los_mnt_container.c | 119 if (!(flags & CLONE_NEWNS)) { in OsCopyMntContainer() 145 if (!(flags & CLONE_NEWNS)) { in OsUnshareMntContainer() 177 if (flags & CLONE_NEWNS) { in OsSetNsMntContainer()
|
/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/exec/ |
H A D | recursion-depth.c | 29 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 30 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/exec/ |
H A D | recursion-depth.c | 29 if (unshare(CLONE_NEWNS) == -1) { in main()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | sched.h | 17 #define CLONE_NEWNS 0x00020000 macro
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | namespaces.c | 233 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter() 254 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
|
/kernel/linux/linux-6.6/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)) in prepare_unpriv_mountns() 990 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F() 1004 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in FIXTURE_SETUP() 1284 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F() 1345 ASSERT_EQ(unshare(CLONE_NEWNS), 0); in TEST_F()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_bpffs.c | 34 err = unshare(CLONE_NEWNS); in fn()
|
/kernel/linux/linux-5.10/samples/binderfs/ |
H A D | binderfs_example.c | 23 ret = unshare(CLONE_NEWNS); in main()
|