| /linux/tools/testing/selftests/clone3/ |
| H A 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()
|
| H A D | clone3.c | 183 .flags = CLONE_NEWPID, 268 .flags = CLONE_NEWPID, 276 .flags = CLONE_NEWPID, 283 .flags = CLONE_NEWPID, 291 .flags = CLONE_NEWPID,
|
| /linux/tools/testing/selftests/pid_namespace/ |
| H A D | pid_max.c | 206 pid = do_clone(pid_max_nested_inner, NULL, CLONE_NEWPID | CLONE_NEWNS); in pid_max_nested_outer() 317 pid = do_clone(pid_max_nested_limit_inner, NULL, CLONE_NEWPID | CLONE_NEWNS); in pid_max_nested_limit_outer() 336 pid = do_clone(pid_max_cb, NULL, CLONE_NEWPID | CLONE_NEWNS); in TEST() 345 pid = do_clone(pid_max_nested_limit_outer, NULL, CLONE_NEWPID | CLONE_NEWNS); in TEST() 354 pid = do_clone(pid_max_nested_outer, NULL, CLONE_NEWPID | CLONE_NEWNS); in TEST()
|
| H A D | regression_enomem.c | 29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_setns_test.c | 44 …[PIDFD_NS_PID] = { "pid", CLONE_NEWPID, PIDFD_GET_PID_NAMESPACE, … 160 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 162 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWPID); in FIXTURE_SETUP() 214 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 216 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWPID); in FIXTURE_SETUP() 453 if (info->flag == CLONE_NEWPID) in TEST_F() 489 if (info->flag == CLONE_NEWPID) in TEST_F() 525 if (info->flag == CLONE_NEWPID) in TEST_F() 570 if (info->flag == CLONE_NEWPID) in TEST_F()
|
| H A D | pidfd_setattr_test.c | 35 self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
|
| H A D | pidfd_file_handle_test.c | 75 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 97 self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 251 ASSERT_EQ(setns(self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID), 0); in TEST_F()
|
| H A D | pidfd_xattr_test.c | 35 self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
|
| H A D | pidfd_fdinfo_test.c | 96 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
|
| H A D | pidfd_info_test.c | 98 self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP() 104 self->child_pid4 = create_child(&self->child_pidfd4, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
|
| H A D | pidfd_test.c | 217 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 1338 int pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in test_sysctl_simple() 1396 pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in sysctl_nested_child() 1402 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl1); in sysctl_nested_child() 1405 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1409 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1418 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl2); in sysctl_nested_child() 1421 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child() 1444 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1463 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() 1487 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child() [all …]
|
| /linux/kernel/ |
| H A D | nsproxy.c | 174 CLONE_NEWPID | CLONE_NEWNET | in copy_namespaces() 218 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP | in unshare_nsproxy_namespaces() 297 CLONE_NEWPID | CLONE_NEWCGROUP))) in check_setns_flags() 305 if (flags & CLONE_NEWPID) in check_setns_flags() 425 if (flags & CLONE_NEWPID) { in validate_nsset() 479 if (flags & CLONE_NEWPID) { in validate_nsset()
|
| H A D | nscommon.c | 33 case CLONE_NEWPID: in ns_debug()
|
| H A D | pid_namespace.c | 178 if (!(flags & CLONE_NEWPID)) in copy_pid_ns()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pidns.c | 72 ASSERT_SUCCESS(unshare(CLONE_NEWPID)); in FIXTURE_SETUP() 88 ASSERT_SUCCESS(setns(self->host_pidns, CLONE_NEWPID)); in FIXTURE_SETUP()
|
| H A D | proc-loadavg-001.c | 30 if (unshare(CLONE_NEWPID) == -1) { in main()
|
| /linux/tools/include/uapi/linux/ |
| H A D | sched.h | |
| /linux/tools/testing/selftests/mount/ |
| H A D | unprivileged-remount-test.c | 34 #ifndef CLONE_NEWPID 35 # define CLONE_NEWPID 0x20000000 macro
|
| /linux/include/uapi/linux/ |
| H A D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
| /linux/tools/testing/selftests/filesystems/nsfs/ |
| H A D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
|
| /linux/fs/ |
| H A D | nsfs.c | 255 if (ns->ns_type != CLONE_NEWPID) in ns_ioctl() 497 case CLONE_NEWPID: in is_current_namespace() 599 case CLONE_NEWPID: in nsfs_fh_to_dentry()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | ns_current_pid_tgid.c | 191 CLONE_NEWPID | SIGCHLD, arg); in test_ns_current_pid_tgid_new_ns()
|
| /linux/fs/proc/ |
| H A D | root.c | 146 if (ns->ns_type != CLONE_NEWPID) in proc_parse_pidns_param()
|