/linux/tools/testing/selftests/uevent/ |
A 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/kernel/ |
A 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()
|
A D | fork.c | 1947 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process() 1980 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process() 2952 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags() 3038 if (unshare_flags & CLONE_NEWUSER) in ksys_unshare()
|
A D | user_namespace.c | 164 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns() 1378 .type = CLONE_NEWUSER,
|
A D | cred.c | 369 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
|
/linux/tools/testing/selftests/pidfd/ |
A 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()
|
A D | pidfd_fdinfo_test.c | 96 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) in clone_newns() 97 flags |= CLONE_NEWUSER; in clone_newns()
|
/linux/tools/testing/selftests/nsfs/ |
A D | owner.c | 42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main() 81 if (unshare(CLONE_NEWUSER)) in main()
|
A D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
|
/linux/tools/testing/selftests/safesetid/ |
A D | safesetid-test.c | 19 #ifndef CLONE_NEWUSER 20 # define CLONE_NEWUSER 0x10000000 macro 181 int clone_flags = CLONE_NEWUSER; in test_userns()
|
/linux/tools/testing/selftests/move_mount_set_group/ |
A 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/tools/testing/selftests/mount/ |
A 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()
|
A D | nosymfollow-test.c | 99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
|
/linux/tools/testing/selftests/pid_namespace/ |
A D | regression_enomem.c | 27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
|
/linux/tools/include/uapi/linux/ |
A D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/linux/include/linux/ |
A D | nsproxy.h | 62 if (set->flags & CLONE_NEWUSER) in nsset_cred()
|
A D | user_namespace.h | 188 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
|
/linux/include/uapi/linux/ |
A D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/linux/tools/testing/selftests/rlimits/ |
A D | rlimits-per-userns.c | 73 if (unshare(CLONE_NEWUSER) < 0) in fork_child()
|
/linux/tools/testing/selftests/mount_setattr/ |
A 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/fs/ |
A D | nsfs.c | 206 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
|
A D | namespace.c | 4130 if (ns->ops->type != CLONE_NEWUSER) { in build_mount_idmapped()
|
/linux/tools/testing/selftests/capabilities/ |
A D | test_execve.c | 121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
|
/linux/tools/testing/selftests/filesystems/binderfs/ |
A D | binderfs_test.c | 300 ret = unshare(CLONE_NEWUSER); in change_userns()
|
/linux/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 3590 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST() 3701 ASSERT_EQ(unshare(CLONE_NEWUSER), 0); in TEST()
|