Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/clone3/
A Dclone3_set_tid.c221 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()
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, 0, 42, true); in main()
A Dclone3.c140 test_clone3(CLONE_NEWPID, 0, 0, CLONE3_ARGS_NO_TEST); in main()
178 test_clone3(CLONE_NEWPID, CLONE_ARGS_SIZE_VER0, 0, 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()
195 test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG, in main()
/linux-6.3-rc2/kernel/
A 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()
A Dpid_namespace.c148 if (!(flags & CLONE_NEWPID)) in copy_pid_ns()
452 .type = CLONE_NEWPID,
463 .type = CLONE_NEWPID,
A Dfork.c2066 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
3082 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags()
/linux-6.3-rc2/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c43 [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()
A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
A Dpidfd_test.c164 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
/linux-6.3-rc2/tools/testing/selftests/pid_namespace/
A Dregression_enomem.c29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/linux-6.3-rc2/tools/testing/selftests/proc/
A Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/linux-6.3-rc2/include/uapi/linux/
A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-6.3-rc2/tools/include/uapi/linux/
A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dns_current_pid_tgid.c69 CLONE_NEWPID | SIGCHLD, NULL); in test_ns_current_pid_tgid_new_ns()
/linux-6.3-rc2/tools/testing/selftests/nsfs/
A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
/linux-6.3-rc2/include/linux/
A Dpid_namespace.h84 if (flags & CLONE_NEWPID) in copy_pid_ns()
/linux-6.3-rc2/tools/testing/selftests/mount/
A Dunprivileged-remount-test.c34 #ifndef CLONE_NEWPID
35 # define CLONE_NEWPID 0x20000000 macro
/linux-6.3-rc2/tools/testing/selftests/memfd/
A Dmemfd_test.c1206 int pid = spawn_newpid_thread(CLONE_NEWPID, newpid_thread_fn); in test_sysctl()
1213 pid = spawn_newpid_thread(CLONE_NEWPID, newpid_thread_fn2); in test_sysctl()
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c3655 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST()
3708 ASSERT_EQ(unshare(CLONE_NEWPID), 0); in TEST()
3723 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST()

Completed in 36 milliseconds