Home
last modified time | relevance | path

Searched refs:CLONE_NEWUSER (Results 1 – 25 of 28) sorted by relevance

12

/tools/testing/selftests/uevent/
A Duevent_filtering.c128 if (post_flags & CLONE_NEWUSER) { in uevent_listener()
129 ret = unshare(CLONE_NEWUSER); in uevent_listener()
275 if (pre_flags & CLONE_NEWUSER) { in do_test()
276 ret = unshare(CLONE_NEWUSER); in do_test()
418 ret = do_test(CLONE_NEWUSER, 0, true, sync_fd); in TEST()
432 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST()
462 ret = do_test(0, CLONE_NEWUSER, true, sync_fd); in TEST()
478 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
/tools/testing/selftests/filesystems/nsfs/
A Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main()
81 if (unshare(CLONE_NEWUSER)) in main()
A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
A Diterate_mntns.c49 ASSERT_EQ(unshare(CLONE_NEWUSER), 0); in FIXTURE_SETUP()
/tools/testing/selftests/pid_namespace/
A Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
/tools/testing/selftests/filesystems/
A Dutils.h34 if (setns(fd, CLONE_NEWUSER)) in switch_userns()
A Dutils.c288 pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER | CLONE_NEWNS); in get_userns_fd_from_idmap()
398 pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM); in create_userns_hierarchy()
490 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID); in setup_userns()
/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c42 …[PIDFD_NS_USER] = { "user", CLONE_NEWUSER, PIDFD_GET_USER_NAMESPACE, …
141 if (self->nsfds[PIDFD_NS_USER] >= 0 && unshare(CLONE_NEWUSER) < 0) in FIXTURE_SETUP()
160 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
164 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER); in FIXTURE_SETUP()
214 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
218 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER); in FIXTURE_SETUP()
408 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
418 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
A Dpidfd_setattr_test.c35 self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
A Dpidfd_fdinfo_test.c99 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) in clone_newns()
100 flags |= CLONE_NEWUSER; in clone_newns()
A Dpidfd_file_handle_test.c53 self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER); in FIXTURE_SETUP()
75 self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
97 self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
251 ASSERT_EQ(setns(self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID), 0); in TEST_F()
A Dpidfd_xattr_test.c35 self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
A Dpidfd_info_test.c98 self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
104 self->child_pid4 = create_child(&self->child_pidfd4, CLONE_NEWUSER | CLONE_NEWPID); in FIXTURE_SETUP()
/tools/testing/selftests/move_mount_set_group/
A Dmove_mount_set_group_test.c24 #ifndef CLONE_NEWUSER
25 #define CLONE_NEWUSER 0x10000000 macro
85 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns()
/tools/testing/selftests/mount/
A Dunprivileged-remount-test.c31 #ifndef CLONE_NEWUSER
32 # define CLONE_NEWUSER 0x10000000 macro
162 if (unshare(CLONE_NEWUSER) !=0) { in create_and_enter_userns()
A Dnosymfollow-test.c99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
/tools/perf/trace/beauty/include/uapi/linux/
A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/tools/testing/selftests/bpf/prog_tests/
A Ddeny_namespace.c41 if (unshare(CLONE_NEWUSER)) in create_user_ns()
/tools/testing/selftests/safesetid/
A Dsafesetid-test.c28 #ifndef CLONE_NEWUSER
29 # define CLONE_NEWUSER 0x10000000 macro
242 int clone_flags = CLONE_NEWUSER; in test_userns()
/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c73 if (unshare(CLONE_NEWUSER) < 0) in fork_child()
/tools/testing/selftests/net/af_unix/
A Ddiag_uid.c41 .unshare = CLONE_NEWUSER, in FIXTURE_VARIANT_ADD()
/tools/testing/selftests/capabilities/
A Dtest_execve.c112 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
/tools/testing/selftests/vDSO/
A Dvdso_test_getrandom.c255 unshare(CLONE_NEWUSER); in kselftest()
/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c30 #ifndef CLONE_NEWUSER
31 #define CLONE_NEWUSER 0x10000000 macro
187 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns()
1211 pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER); in get_userns_fd()
/tools/testing/selftests/filesystems/binderfs/
A Dbinderfs_test.c301 ret = unshare(CLONE_NEWUSER); in change_userns()

Completed in 34 milliseconds

12