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

/linux-master/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c29 EXPECT_EQ(0, unshare(CLONE_NEWPID));
/linux-master/tools/testing/selftests/clone3/
H A Dclone3_set_tid.c219 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0);
232 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, 0, 0, 0);
241 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0);
268 test_clone3_set_tid(set_tid, 1, CLONE_NEWPID, -EINVAL, 0, 0);
277 test_clone3_set_tid(set_tid, 2, CLONE_NEWPID, 0, pid, 0);
280 if (unshare(CLONE_NEWPID) == -1)
281 ksft_exit_fail_msg("unshare(CLONE_NEWPID) failed: %s\n",
312 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID, -EINVAL, 0, 0);
322 test_clone3_set_tid(set_tid, 4, CLONE_NEWPID, -EINVAL, 0, 0);
328 test_clone3_set_tid(set_tid, 3, CLONE_NEWPID,
[all...]
H A Dclone3.c178 .flags = CLONE_NEWPID,
263 .flags = CLONE_NEWPID,
271 .flags = CLONE_NEWPID,
278 .flags = CLONE_NEWPID,
286 .flags = CLONE_NEWPID,
/linux-master/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) {
/linux-master/include/uapi/linux/
H A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-master/tools/include/uapi/linux/
H A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dns_current_pid_tgid.c69 CLONE_NEWPID | SIGCHLD, NULL);
/linux-master/kernel/
H A Dnsproxy.c158 CLONE_NEWPID | CLONE_NEWNET |
220 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP |
280 CLONE_NEWPID | CLONE_NEWCGROUP)))
288 if (flags & CLONE_NEWPID)
408 if (flags & CLONE_NEWPID) {
462 if (flags & CLONE_NEWPID) {
H A Dpid_namespace.c149 if (!(flags & CLONE_NEWPID))
254 * 1) TASK A unshare(CLONE_NEWPID)
446 .type = CLONE_NEWPID,
457 .type = CLONE_NEWPID,
H A Dfork.c2187 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
3200 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP|
/linux-master/tools/testing/selftests/memfd/
H A Dmemfd_test.c1278 int pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL);
1320 pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL);
1326 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl1);
1329 pid = spawn_thread(CLONE_NEWPID, sysctl_nested,
1333 pid = spawn_thread(CLONE_NEWPID, sysctl_nested,
1342 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, test_sysctl_sysctl2);
1345 pid = spawn_thread(CLONE_NEWPID, sysctl_nested,
1353 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait,
1362 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait,
1375 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wai
[all...]
/linux-master/tools/testing/selftests/nsfs/
H A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL);
/linux-master/include/linux/
H A Dpid_namespace.h97 if (flags & CLONE_NEWPID)
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c43 [PIDFD_NS_PID] = { "pid", CLONE_NEWPID, },
180 CLONE_NEWUTS | CLONE_NEWPID |
209 CLONE_NEWUTS | CLONE_NEWPID |
399 if (info->flag == CLONE_NEWPID)
435 if (info->flag == CLONE_NEWPID)
480 if (info->flag == CLONE_NEWPID)
H A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD;
H A Dpidfd_test.c165 ret = unshare(CLONE_NEWPID);
/linux-master/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c34 #ifndef CLONE_NEWPID
35 # define CLONE_NEWPID 0x20000000 macro
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3658 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) {
3711 ASSERT_EQ(unshare(CLONE_NEWPID), 0) {
3713 SKIP(return, "CLONE_NEWPID requires CAP_SYS_ADMIN");
3715 SKIP(return, "CLONE_NEWPID is invalid (missing CONFIG_PID_NS?)");
3731 ASSERT_EQ(unshare(CLONE_NEWPID), 0) {
3733 SKIP(return, "CLONE_NEWPID requires CAP_SYS_ADMIN");
3735 SKIP(return, "CLONE_NEWPID is invalid (missing CONFIG_PID_NS?)");

Completed in 393 milliseconds