/Linux-v6.1/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 127 if (post_flags & CLONE_NEWUSER) { in uevent_listener() 128 ret = unshare(CLONE_NEWUSER); in uevent_listener() 273 if (pre_flags & CLONE_NEWUSER) { in do_test() 274 ret = unshare(CLONE_NEWUSER); in do_test() 416 ret = do_test(CLONE_NEWUSER, 0, true, sync_fd); in TEST() 430 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST() 460 ret = do_test(0, CLONE_NEWUSER, true, sync_fd); in TEST() 476 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
|
/Linux-v6.1/kernel/ |
D | nsproxy.c | 260 CLONE_NEWNET | CLONE_NEWTIME | CLONE_NEWUSER | in check_setns_flags() 265 if (flags & CLONE_NEWUSER) in check_setns_flags() 300 if (flags & CLONE_NEWUSER) in put_nsset() 320 if (flags & CLONE_NEWUSER) in prepare_nsset() 401 if (flags & CLONE_NEWUSER) in validate_nsset() 413 if (flags & CLONE_NEWUSER) { in validate_nsset() 499 if (flags & CLONE_NEWUSER) { in commit_nsset()
|
D | fork.c | 2008 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process() 2041 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process() 3065 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags() 3151 if (unshare_flags & CLONE_NEWUSER) in ksys_unshare()
|
D | user_namespace.c | 181 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns() 1395 .type = CLONE_NEWUSER,
|
D | cred.c | 369 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
|
/Linux-v6.1/tools/testing/selftests/nsfs/ |
D | owner.c | 42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main() 81 if (unshare(CLONE_NEWUSER)) in main()
|
D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
|
/Linux-v6.1/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 41 [PIDFD_NS_USER] = { "user", CLONE_NEWUSER, }, 160 CLONE_NEWUSER | CLONE_NEWNET); in FIXTURE_SETUP() 178 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP() 207 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP() 354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F() 364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
|
D | pidfd_fdinfo_test.c | 98 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) in clone_newns() 99 flags |= CLONE_NEWUSER; in clone_newns()
|
/Linux-v6.1/tools/testing/selftests/move_mount_set_group/ |
D | move_mount_set_group_test.c | 24 #ifndef CLONE_NEWUSER 25 #define CLONE_NEWUSER 0x10000000 macro 85 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns()
|
/Linux-v6.1/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 31 #ifndef CLONE_NEWUSER 32 # define CLONE_NEWUSER 0x10000000 macro 162 if (unshare(CLONE_NEWUSER) !=0) { in create_and_enter_userns()
|
D | nosymfollow-test.c | 99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
|
/Linux-v6.1/tools/testing/selftests/pid_namespace/ |
D | regression_enomem.c | 27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
|
/Linux-v6.1/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 28 #ifndef CLONE_NEWUSER 29 # define CLONE_NEWUSER 0x10000000 macro 242 int clone_flags = CLONE_NEWUSER; in test_userns()
|
/Linux-v6.1/include/uapi/linux/ |
D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/Linux-v6.1/include/linux/ |
D | nsproxy.h | 62 if (set->flags & CLONE_NEWUSER) in nsset_cred()
|
D | user_namespace.h | 197 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | deny_namespace.c | 41 if (unshare(CLONE_NEWUSER)) in create_user_ns()
|
/Linux-v6.1/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 73 if (unshare(CLONE_NEWUSER) < 0) in fork_child()
|
/Linux-v6.1/tools/testing/selftests/net/af_unix/ |
D | diag_uid.c | 41 .unshare = CLONE_NEWUSER, in FIXTURE_VARIANT_ADD()
|
/Linux-v6.1/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 28 #ifndef CLONE_NEWUSER 29 #define CLONE_NEWUSER 0x10000000 macro 203 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns() 1223 pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER); in get_userns_fd()
|
/Linux-v6.1/fs/ |
D | nsfs.c | 206 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
|
/Linux-v6.1/tools/testing/selftests/capabilities/ |
D | test_execve.c | 121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
|
/Linux-v6.1/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 301 ret = unshare(CLONE_NEWUSER); in change_userns()
|