Searched refs:CLONE_NEWUSER (Results 1 - 25 of 29) sorted by relevance

12

/linux-master/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER));
/linux-master/tools/testing/selftests/nsfs/
H A Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER))
81 if (unshare(CLONE_NEWUSER))
H A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL);
/linux-master/tools/testing/selftests/uevent/
H A Duevent_filtering.c128 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 Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/linux-master/tools/include/uapi/linux/
H A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Ddeny_namespace.c41 if (unshare(CLONE_NEWUSER))
/linux-master/include/linux/
H A Dnsproxy.h63 if (set->flags & CLONE_NEWUSER)
H A Duser_namespace.h205 if (unshare_flags & CLONE_NEWUSER)
/linux-master/kernel/
H A Dnsproxy.c279 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 Duser_namespace.c181 if (!(unshare_flags & CLONE_NEWUSER))
1398 .type = CLONE_NEWUSER,
H A Dfork.c2154 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 Dunprivileged-remount-test.c31 #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 Dnosymfollow-test.c99 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 Dmove_mount_set_group_test.c24 #ifndef CLONE_NEWUSER
25 #define CLONE_NEWUSER 0x10000000 macro
85 if (unshare(CLONE_NEWUSER))
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c41 [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 Dpidfd_fdinfo_test.c98 if (!(flags & CLONE_NEWUSER) && geteuid() != 0)
99 flags |= CLONE_NEWUSER;
/linux-master/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c28 #ifndef CLONE_NEWUSER
29 # define CLONE_NEWUSER 0x10000000 macro
242 int clone_flags = CLONE_NEWUSER;
/linux-master/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c73 if (unshare(CLONE_NEWUSER) < 0)
74 err(EXIT_FAILURE, "unshare(CLONE_NEWUSER)");
/linux-master/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c41 .unshare = CLONE_NEWUSER,
/linux-master/fs/
H A Dnsfs.c140 if (ns->ops->type != CLONE_NEWUSER)
/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c29 #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 Dtest_execve.c109 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) {
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c301 ret = unshare(CLONE_NEWUSER);
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c140 ret = unshare(CLONE_NEWNS|CLONE_NEWUSER);

Completed in 245 milliseconds

12