Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/kernel/
H A Dnsproxy.c159 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 Dnsproxy.c158 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 Dfw_namespace.c20 #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 Dfw_namespace.c20 #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 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()
/kernel/linux/linux-5.10/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) { 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 Dunprivileged-remount-test.c19 #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 DIt_mnt_container_010.cpp44 int ret = unshare(CLONE_NEWNS); in childFunc()
80 auto pid1 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer010()
H A DIt_mnt_container_009.cpp76 auto pid1 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009()
79 auto pid2 = clone(childFunc, stackTop, CLONE_NEWNS, NULL); in ItMntContainer009()
H A DIt_mnt_container_008.cpp56 int setFlag = CLONE_NEWNS; in ItMntContainer008()
62 childPid = clone(ChildFun, (char *)pstk + STACK_SIZE, CLONE_NEWNS, nullptr); in ItMntContainer008()
H A DIt_mnt_container_005.cpp42 ret = unshare(CLONE_NEWNS); in MntContainerUnshare()
H A DIt_mnt_container_002.cpp87 auto pid = clone(ChildFunc, stackTop, CLONE_NEWNS, &arg); in ItMntContainer002()
H A DIt_mnt_container_004.cpp71 auto pid = clone(ChildFunc, stackTop, CLONE_NEWNS, &arg); in ItMntContainer004()
H A DIt_mnt_container_006.cpp46 ret = unshare(CLONE_NEWNS); in ChildFunc()
H A DIt_mnt_container_007.cpp42 ret = unshare(CLONE_NEWNS); in ChildFunc()
/kernel/liteos_a/kernel/extended/container/
H A Dlos_mnt_container.c119 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 Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
H A Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/kernel/linux/linux-6.6/tools/testing/selftests/exec/
H A Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dsched.h17 #define CLONE_NEWNS 0x00020000 macro
/kernel/linux/linux-5.10/tools/perf/util/
H A Dnamespaces.c233 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 Dmount_setattr_test.c25 #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 Dtest_bpffs.c34 err = unshare(CLONE_NEWNS); in fn()
/kernel/linux/linux-5.10/samples/binderfs/
H A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS); in main()

Completed in 9 milliseconds

123