Home
last modified time | relevance | path

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

/tools/testing/selftests/clone3/
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()
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()
/tools/testing/selftests/pid_namespace/
Dregression_enomem.c29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/tools/testing/selftests/proc/
Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/tools/testing/selftests/pidfd/
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()
Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
Dpidfd_test.c164 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
/tools/include/uapi/linux/
Dsched.h32 #define CLONE_NEWPID 0x20000000 /* New pid namespace */ macro
/tools/testing/selftests/nsfs/
Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c34 #ifndef CLONE_NEWPID
35 # define CLONE_NEWPID 0x20000000 macro
/tools/testing/selftests/bpf/
Dtest_current_pid_tgid_new_ns.c45 if (CHECK_NEWNS(unshare(CLONE_NEWPID | CLONE_NEWNS), in main()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3586 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST()
3639 ASSERT_EQ(unshare(CLONE_NEWPID), 0); in TEST()
3654 ASSERT_EQ(unshare(CLONE_NEWPID), 0) { in TEST()