Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/clone3/
H 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()
H 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()
/openbmc/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c1287 int pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in test_sysctl_simple()
1330 pid = spawn_thread(CLONE_NEWPID, sysctl_simple_child, NULL); in sysctl_nested_child()
1339 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child()
1343 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child()
1355 pid = spawn_thread(CLONE_NEWPID, sysctl_nested, in sysctl_nested_child()
1363 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child()
1372 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child()
1385 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child()
1393 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child()
1401 pid = spawn_thread(CLONE_NEWPID, sysctl_nested_wait, in sysctl_nested_child()
[all …]
/openbmc/linux/kernel/
H 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()
H A Dpid_namespace.c148 if (!(flags & CLONE_NEWPID)) in copy_pid_ns()
452 .type = CLONE_NEWPID,
463 .type = CLONE_NEWPID,
H A Dfork.c2293 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
3312 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags()
/openbmc/linux/tools/testing/selftests/pidfd/
H 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()
H A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
H A Dpidfd_test.c165 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
/openbmc/linux/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/openbmc/linux/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/openbmc/linux/include/uapi/linux/
H A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/openbmc/linux/tools/include/uapi/linux/
H A Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dns_current_pid_tgid.c69 CLONE_NEWPID | SIGCHLD, NULL); in test_ns_current_pid_tgid_new_ns()
/openbmc/linux/tools/testing/selftests/nsfs/
H A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
/openbmc/linux/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c34 #ifndef CLONE_NEWPID
35 # define CLONE_NEWPID 0x20000000 macro
/openbmc/linux/include/linux/
H A Dpid_namespace.h97 if (flags & CLONE_NEWPID) in copy_pid_ns()
/openbmc/qemu/system/
H A Dqemu-seccomp.c120 FORBID_CLONE_FLAG(CLONE_NEWPID);
244 RULE_CLONE_FLAG(CLONE_NEWPID),
/openbmc/openbmc/poky/meta/recipes-core/glibc/glibc/
H A D0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch14 CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3659 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST()
3712 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST()
3732 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST()
/openbmc/qemu/linux-user/
H A Dstrace.c1169 #if defined(CLONE_NEWPID)
1170 FLAG_GENERIC(CLONE_NEWPID),