Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/uevent/
A Duevent_filtering.c127 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 Dnsproxy.c260 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 Dfork.c1947 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 Duser_namespace.c164 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns()
1378 .type = CLONE_NEWUSER,
A Dcred.c369 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
/linux/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c41 [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 Dpidfd_fdinfo_test.c96 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) in clone_newns()
97 flags |= CLONE_NEWUSER; in clone_newns()
/linux/tools/testing/selftests/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()
/linux/tools/testing/selftests/safesetid/
A Dsafesetid-test.c19 #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 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()
/linux/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()
/linux/tools/testing/selftests/pid_namespace/
A Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
/linux/tools/include/uapi/linux/
A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/linux/include/linux/
A Dnsproxy.h62 if (set->flags & CLONE_NEWUSER) in nsset_cred()
A Duser_namespace.h188 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
/linux/include/uapi/linux/
A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/linux/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c73 if (unshare(CLONE_NEWUSER) < 0) in fork_child()
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c28 #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 Dnsfs.c206 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
A Dnamespace.c4130 if (ns->ops->type != CLONE_NEWUSER) { in build_mount_idmapped()
/linux/tools/testing/selftests/capabilities/
A Dtest_execve.c121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
/linux/tools/testing/selftests/filesystems/binderfs/
A Dbinderfs_test.c300 ret = unshare(CLONE_NEWUSER); in change_userns()
/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c3590 ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) { in TEST()
3701 ASSERT_EQ(unshare(CLONE_NEWUSER), 0); in TEST()

Completed in 57 milliseconds