/linux-6.12.1/tools/testing/selftests/clone3/ |
D | clone3_set_tid.c | 230 set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 245 set_tid, 1, CLONE_NEWPID, 0, 0, 0); in main() 256 set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 285 set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0); in main() 295 set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main() 298 if (unshare(CLONE_NEWPID) == -1) in main() 335 set_tid, 3, CLONE_NEWPID, -EINVAL, 0, 0); in main() 346 set_tid, 4, CLONE_NEWPID, -EINVAL, 0, 0); in main() 353 set_tid, 3, CLONE_NEWPID, 0, 42, true); in main()
|
D | clone3.c | 183 .flags = CLONE_NEWPID, 268 .flags = CLONE_NEWPID, 276 .flags = CLONE_NEWPID, 283 .flags = CLONE_NEWPID, 291 .flags = CLONE_NEWPID,
|
/linux-6.12.1/tools/testing/selftests/memfd/ |
D | memfd_test.c | 1278 int pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in test_sysctl_simple() 1320 pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in sysctl_nested_child() 1326 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl1); in sysctl_nested_child() 1329 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1333 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1342 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl2); in sysctl_nested_child() 1345 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1353 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1362 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1375 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() [all …]
|
/linux-6.12.1/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 90 …[PIDFD_NS_PID] = { "pid", CLONE_NEWPID, PIDFD_GET_PID_NAMESPACE, … 244 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 246 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWPID); in FIXTURE_SETUP() 298 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 300 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWPID); in FIXTURE_SETUP() 537 if (info->flag == CLONE_NEWPID) in TEST_F() 573 if (info->flag == CLONE_NEWPID) in TEST_F() 609 if (info->flag == CLONE_NEWPID) in TEST_F() 654 if (info->flag == CLONE_NEWPID) in TEST_F()
|
D | pidfd_fdinfo_test.c | 95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
|
D | pidfd_test.c | 165 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
|
/linux-6.12.1/kernel/ |
D | nsproxy.c | 158 CLONE_NEWPID | CLONE_NEWNET | in copy_namespaces() 220 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP | in unshare_nsproxy_namespaces() 280 CLONE_NEWPID | CLONE_NEWCGROUP))) in check_setns_flags() 288 if (flags & CLONE_NEWPID) in check_setns_flags() 408 if (flags & CLONE_NEWPID) { in validate_nsset() 462 if (flags & CLONE_NEWPID) { in validate_nsset()
|
D | pid_namespace.c | 149 if (!(flags & CLONE_NEWPID)) in copy_pid_ns() 429 .type = CLONE_NEWPID, 440 .type = CLONE_NEWPID,
|
D | fork.c | 2171 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process() 3191 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags()
|
/linux-6.12.1/tools/testing/selftests/pid_namespace/ |
D | regression_enomem.c | 29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
|
/linux-6.12.1/tools/testing/selftests/proc/ |
D | proc-loadavg-001.c | 30 if (unshare(CLONE_NEWPID) == -1) { in main()
|
/linux-6.12.1/tools/perf/trace/beauty/include/uapi/linux/ |
D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
/linux-6.12.1/include/uapi/linux/ |
D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
/linux-6.12.1/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 34 #ifndef CLONE_NEWPID 35 # define CLONE_NEWPID 0x20000000 macro
|
/linux-6.12.1/tools/testing/selftests/nsfs/ |
D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
|
/linux-6.12.1/include/linux/ |
D | pid_namespace.h | 97 if (flags & CLONE_NEWPID) in copy_pid_ns()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | ns_current_pid_tgid.c | 191 CLONE_NEWPID | SIGCHLD, arg); in test_ns_current_pid_tgid_new_ns()
|
/linux-6.12.1/tools/testing/selftests/filesystems/statmount/ |
D | statmount_test_ns.c | 139 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID); in setup_namespace()
|
D | statmount_test.c | 135 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID); in setup_namespace()
|
/linux-6.12.1/fs/ |
D | nsfs.c | 203 if (ns->ops->type != CLONE_NEWPID) in ns_ioctl()
|
/linux-6.12.1/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3660 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST() 3713 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST() 3733 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST()
|