/linux-master/tools/testing/selftests/pid_namespace/ |
H A D | regression_enomem.c | 27 EXPECT_EQ(0, unshare(CLONE_NEWUSER));
|
/linux-master/tools/testing/selftests/nsfs/ |
H A D | owner.c | 42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) 81 if (unshare(CLONE_NEWUSER))
|
H A D | pidns.c | 50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL);
|
/linux-master/tools/testing/selftests/uevent/ |
H A D | uevent_filtering.c | 128 if (post_flags & CLONE_NEWUSER) { 129 ret = unshare(CLONE_NEWUSER); 275 if (pre_flags & CLONE_NEWUSER) { 276 ret = unshare(CLONE_NEWUSER); 418 ret = do_test(CLONE_NEWUSER, 0, true, sync_fd); 432 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); 462 ret = do_test(0, CLONE_NEWUSER, true, sync_fd); 478 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd);
|
/linux-master/include/uapi/linux/ |
H A D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/linux-master/tools/include/uapi/linux/ |
H A D | sched.h | 31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | deny_namespace.c | 41 if (unshare(CLONE_NEWUSER))
|
/linux-master/include/linux/ |
H A D | nsproxy.h | 63 if (set->flags & CLONE_NEWUSER)
|
H A D | user_namespace.h | 205 if (unshare_flags & CLONE_NEWUSER)
|
/linux-master/kernel/ |
H A D | nsproxy.c | 279 CLONE_NEWNET | CLONE_NEWTIME | CLONE_NEWUSER | 284 if (flags & CLONE_NEWUSER) 319 if (flags & CLONE_NEWUSER) 339 if (flags & CLONE_NEWUSER) 420 if (flags & CLONE_NEWUSER) 432 if (flags & CLONE_NEWUSER) { 518 if (flags & CLONE_NEWUSER) {
|
H A D | user_namespace.c | 181 if (!(unshare_flags & CLONE_NEWUSER)) 1398 .type = CLONE_NEWUSER,
|
H A D | fork.c | 2154 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) 2187 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || 3200 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| 3286 if (unshare_flags & CLONE_NEWUSER)
|
/linux-master/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 31 #ifndef CLONE_NEWUSER 32 # define CLONE_NEWUSER 0x10000000 macro 162 if (unshare(CLONE_NEWUSER) !=0) { 163 die("unshare(CLONE_NEWUSER) failed: %s\n",
|
H A D | nosymfollow-test.c | 99 if (unshare(CLONE_NEWUSER) != 0) 100 die("unshare(CLONE_NEWUSER) failed: %s\n", strerror(errno));
|
/linux-master/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 24 #ifndef CLONE_NEWUSER 25 #define CLONE_NEWUSER 0x10000000 macro 85 if (unshare(CLONE_NEWUSER))
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 41 [PIDFD_NS_USER] = { "user", CLONE_NEWUSER, }, 160 CLONE_NEWUSER | CLONE_NEWNET); 178 CLONE_NEWUSER | CLONE_NEWNS | 207 CLONE_NEWUSER | CLONE_NEWNS | 354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); 364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET),
|
H A D | pidfd_fdinfo_test.c | 98 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) 99 flags |= CLONE_NEWUSER;
|
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 28 #ifndef CLONE_NEWUSER 29 # define CLONE_NEWUSER 0x10000000 macro 242 int clone_flags = CLONE_NEWUSER;
|
/linux-master/tools/testing/selftests/rlimits/ |
H A D | rlimits-per-userns.c | 73 if (unshare(CLONE_NEWUSER) < 0) 74 err(EXIT_FAILURE, "unshare(CLONE_NEWUSER)");
|
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | diag_uid.c | 41 .unshare = CLONE_NEWUSER,
|
/linux-master/fs/ |
H A D | nsfs.c | 140 if (ns->ops->type != CLONE_NEWUSER)
|
/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 29 #ifndef CLONE_NEWUSER 30 #define CLONE_NEWUSER 0x10000000 macro 197 if (unshare(CLONE_NEWUSER)) 1217 pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER);
|
/linux-master/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 109 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) {
|
/linux-master/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 301 ret = unshare(CLONE_NEWUSER);
|
/linux-master/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test.c | 140 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER);
|