/linux-master/tools/testing/selftests/pid_namespace/ |
H A D | regression_enomem.c | 29 EXPECT_EQ(0, unshare(CLONE_NEWPID));
|
/linux-master/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 219 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 D | clone3.c | 178 .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 D | proc-loadavg-001.c | 30 if (unshare(CLONE_NEWPID) == -1) {
|
/linux-master/include/uapi/linux/ |
H A D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
/linux-master/tools/include/uapi/linux/ |
H A D | sched.h | 32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | ns_current_pid_tgid.c | 69 CLONE_NEWPID | SIGCHLD, NULL);
|
/linux-master/kernel/ |
H A D | nsproxy.c | 158 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 D | pid_namespace.c | 149 if (!(flags & CLONE_NEWPID)) 254 * 1) TASK A unshare(CLONE_NEWPID) 446 .type = CLONE_NEWPID, 457 .type = CLONE_NEWPID,
|
H A D | fork.c | 2187 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || 3200 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP|
|
/linux-master/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 1278 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 D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL);
|
/linux-master/include/linux/ |
H A D | pid_namespace.h | 97 if (flags & CLONE_NEWPID)
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 43 [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 D | pidfd_fdinfo_test.c | 95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD;
|
H A D | pidfd_test.c | 165 ret = unshare(CLONE_NEWPID);
|
/linux-master/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 34 #ifndef CLONE_NEWPID 35 # define CLONE_NEWPID 0x20000000 macro
|
/linux-master/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 3658 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?)");
|