/kernel/linux/linux-5.10/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 221 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 234 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, 0, 0, 0); in main() 243 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 270 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 279 test_clone3_set_tid(set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main() 282 if (unshare(CLONE_NEWPID) == -1) in main() 283 ksft_exit_fail_msg("unshare(CLONE_NEWPID) failed: %s\n", in main() 314 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, -EINVAL, 0, 0); in main() 324 test_clone3_set_tid(set_tid, 4, CLONE_NEWPID, -EINVAL, 0, 0); in main() 330 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, in main() [all...] |
H A D | clone3.c | 140 test_clone3(CLONE_NEWPID, 0, 0, CLONE3_ARGS_NO_TEST); in main() 142 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 178 test_clone3(CLONE_NEWPID, CLONE_ARGS_SIZE_VER0, 0, in main() 181 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 184 test_clone3(CLONE_NEWPID, CLONE_ARGS_SIZE_VER0 - 8, -EINVAL, in main() 189 test_clone3(CLONE_NEWPID, sizeof(struct __clone_args) + 8, 0, in main() 192 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 195 test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG, in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 221 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 234 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, 0, 0, 0); in main() 243 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 270 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 279 test_clone3_set_tid(set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main() 282 if (unshare(CLONE_NEWPID) == -1) in main() 283 ksft_exit_fail_msg("unshare(CLONE_NEWPID) failed: %s\n", in main() 314 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, -EINVAL, 0, 0); in main() 324 test_clone3_set_tid(set_tid, 4, CLONE_NEWPID, -EINVAL, 0, 0); in main() 330 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, in main() [all...] |
H A D | clone3.c | 140 test_clone3(CLONE_NEWPID, 0, 0, CLONE3_ARGS_NO_TEST); in main() 142 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 178 test_clone3(CLONE_NEWPID, CLONE_ARGS_SIZE_VER0, 0, in main() 181 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 184 test_clone3(CLONE_NEWPID, CLONE_ARGS_SIZE_VER0 - 8, -EINVAL, in main() 189 test_clone3(CLONE_NEWPID, sizeof(struct __clone_args) + 8, 0, in main() 192 ksft_test_result_skip("Skipping clone3() with CLONE_NEWPID\n"); in main() 195 test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG, in main()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_004.cpp | 45 int childPid = clone(ChildFun, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ChildFunClone2() 66 int childPid = clone(ChildFunClone2, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ChildFunClone1() 96 int childPid = clone(ChildFunClone1, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer004()
|
H A D | It_pid_container_024.cpp | 52 auto pid = CloneWrapper(ChildFunc, CLONE_NEWPID, &argTmp); in GroupProcess() 73 auto pid = CloneWrapper(GroupProcess, CLONE_NEWPID, &arg); in ItPidContainer024()
|
H A D | It_pid_container_002.cpp | 114 int childPid = clone(ChildFunClone2, NULL, CLONE_NEWPID | SIGCHLD, NULL); in ChildFunClone1() 142 int childPid = clone(ChildFunClone1, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer002()
|
H A D | It_pid_container_013.cpp | 57 int childPid = clone(ChildFun, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer013()
|
H A D | It_pid_container_007.cpp | 62 int childPid = clone(ChildFun, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer007()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_pid_container_029.cpp | 61 ret = unshare(CLONE_NEWPID); in ChildFunClone1() 81 int childPid = clone(ChildFunClone2, (char *)pstk + STACK_SIZE, CLONE_NEWPID | SIGCHLD, NULL); in ChildFunClone1() 93 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
|
H A D | It_pid_container_031.cpp | 57 int childPid = clone(ChildFun1, NULL, CLONE_NEWPID | SIGCHLD, NULL); in ChildFun() 76 ret = setns(fd, CLONE_NEWPID); in ChildFun() 137 int childPid = clone(ChildFun, NULL, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer031()
|
H A D | It_pid_container_030.cpp | 62 ret = unshare(CLONE_NEWPID); in ChildFunClone1() 102 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
|
H A D | It_pid_container_033.cpp | 44 int ret = unshare(CLONE_NEWPID); in childFunc() 82 auto pid1 = clone(childFunc, stackTop, CLONE_NEWPID, NULL); in ItPidContainer033()
|
H A D | It_pid_container_028.cpp | 83 ret = unshare(CLONE_NEWPID); in ChildFunClone1() 109 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
|
H A D | It_pid_container_032.cpp | 78 auto pid1 = clone(childFunc, stackTop, CLONE_NEWPID, NULL); in ItPidContainer032() 81 auto pid2 = clone(childFunc, stackTop, CLONE_NEWPID, NULL); in ItPidContainer032()
|
H A D | It_pid_container_027.cpp | 83 ret = unshare(CLONE_NEWPID); in ChildFunClone1() 111 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 43 [PIDFD_NS_PID] = { "pid", CLONE_NEWPID, }, 180 CLONE_NEWUTS | CLONE_NEWPID | in FIXTURE_SETUP() 209 CLONE_NEWUTS | CLONE_NEWPID | in FIXTURE_SETUP() 399 if (info->flag == CLONE_NEWPID) in TEST_F() 435 if (info->flag == CLONE_NEWPID) in TEST_F() 480 if (info->flag == CLONE_NEWPID) in TEST_F()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | nsproxy.c | 160 CLONE_NEWPID | CLONE_NEWNET | in copy_namespaces() 224 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP | in unshare_nsproxy_namespaces() 272 CLONE_NEWPID | CLONE_NEWCGROUP))) in check_setns_flags() 280 if (flags & CLONE_NEWPID) in check_setns_flags() 400 if (flags & CLONE_NEWPID) { in validate_nsset() 454 if (flags & CLONE_NEWPID) { in validate_nsset()
|
H A D | pid_namespace.c | 145 if (!(flags & CLONE_NEWPID)) in copy_pid_ns() 257 * 1) TASK A unshare(CLONE_NEWPID) in zap_pid_ns_processes() 456 .type = CLONE_NEWPID, 467 .type = CLONE_NEWPID,
|
/kernel/linux/linux-6.6/kernel/ |
H A D | nsproxy.c | 159 CLONE_NEWPID | CLONE_NEWNET | in copy_namespaces() 221 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP | in unshare_nsproxy_namespaces() 286 CLONE_NEWPID | CLONE_NEWCGROUP))) in check_setns_flags() 294 if (flags & CLONE_NEWPID) in check_setns_flags() 414 if (flags & CLONE_NEWPID) { in validate_nsset() 468 if (flags & CLONE_NEWPID) { in validate_nsset()
|
H A D | pid_namespace.c | 148 if (!(flags & CLONE_NEWPID)) in copy_pid_ns() 253 * 1) TASK A unshare(CLONE_NEWPID) in zap_pid_ns_processes() 451 .type = CLONE_NEWPID, 462 .type = CLONE_NEWPID,
|
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 43 [PIDFD_NS_PID] = { "pid", CLONE_NEWPID, }, 180 CLONE_NEWUTS | CLONE_NEWPID | in FIXTURE_SETUP() 209 CLONE_NEWUTS | CLONE_NEWPID | in FIXTURE_SETUP() 399 if (info->flag == CLONE_NEWPID) in TEST_F() 435 if (info->flag == CLONE_NEWPID) in TEST_F() 480 if (info->flag == CLONE_NEWPID) in TEST_F()
|
/kernel/linux/linux-6.6/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 1287 int pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in test_sysctl_simple() 1330 pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in sysctl_nested_child() 1336 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl1); in sysctl_nested_child() 1339 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1343 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1352 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl2); in sysctl_nested_child() 1355 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1363 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1372 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1385 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wai in sysctl_nested_child() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/pid_namespace/ |
H A D | regression_enomem.c | 29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
|
/kernel/linux/linux-6.6/tools/testing/selftests/pid_namespace/ |
H A D | regression_enomem.c | 29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
|