Home
last modified time | relevance | path

Searched refs:CLONE_NEWPID (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/tools/testing/selftests/clone3/
Dclone3_set_tid.c230 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()
Dclone3.c183 .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/
Dmemfd_test.c1278 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/
Dpidfd_setns_test.c90 …[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()
Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
Dpidfd_test.c165 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
/linux-6.12.1/kernel/
Dnsproxy.c158 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()
Dpid_namespace.c149 if (!(flags & CLONE_NEWPID)) in copy_pid_ns()
429 .type = CLONE_NEWPID,
440 .type = CLONE_NEWPID,
Dfork.c2171 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/
Dregression_enomem.c29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/linux-6.12.1/tools/testing/selftests/proc/
Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/linux-6.12.1/tools/perf/trace/beauty/include/uapi/linux/
Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-6.12.1/include/uapi/linux/
Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-6.12.1/tools/testing/selftests/mount/
Dunprivileged-remount-test.c34 #ifndef CLONE_NEWPID
35 # define CLONE_NEWPID 0x20000000 macro
/linux-6.12.1/tools/testing/selftests/nsfs/
Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
/linux-6.12.1/include/linux/
Dpid_namespace.h97 if (flags & CLONE_NEWPID) in copy_pid_ns()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dns_current_pid_tgid.c191 CLONE_NEWPID | SIGCHLD, arg); in test_ns_current_pid_tgid_new_ns()
/linux-6.12.1/tools/testing/selftests/filesystems/statmount/
Dstatmount_test_ns.c139 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID); in setup_namespace()
Dstatmount_test.c135 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID); in setup_namespace()
/linux-6.12.1/fs/
Dnsfs.c203 if (ns->ops->type != CLONE_NEWPID) in ns_ioctl()
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3660 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()