Symbol: CLONE_NEWUSER
fs/namespace.c
4984
if (ns->ns_type != CLONE_NEWUSER)
fs/nsfs.c
242
if (ns->ns_type != CLONE_NEWUSER)
fs/nsfs.c
505
case CLONE_NEWUSER:
fs/nsfs.c
615
case CLONE_NEWUSER:
include/linux/ns/ns_common_types.h
195
struct user_namespace *: CLONE_NEWUSER, \
include/linux/nsproxy.h
63
if (set->flags & CLONE_NEWUSER)
include/linux/user_namespace.h
222
if (unshare_flags & CLONE_NEWUSER)
kernel/cred.c
290
if (clone_flags & CLONE_NEWUSER) {
kernel/fork.c
1984
if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS))
kernel/fork.c
2017
if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
kernel/fork.c
3051
CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP|
kernel/fork.c
3136
if (unshare_flags & CLONE_NEWUSER)
kernel/nscommon.c
43
case CLONE_NEWUSER:
kernel/nsproxy.c
296
CLONE_NEWNET | CLONE_NEWTIME | CLONE_NEWUSER |
kernel/nsproxy.c
301
if (flags & CLONE_NEWUSER)
kernel/nsproxy.c
336
if (flags & CLONE_NEWUSER)
kernel/nsproxy.c
356
if (flags & CLONE_NEWUSER)
kernel/nsproxy.c
437
if (flags & CLONE_NEWUSER)
kernel/nsproxy.c
449
if (flags & CLONE_NEWUSER) {
kernel/nsproxy.c
535
if (flags & CLONE_NEWUSER) {
kernel/nstree.c
220
VFS_WARN_ON_ONCE(owner->ns_type != CLONE_NEWUSER);
kernel/nstree.c
299
case CLONE_NEWUSER:
kernel/nstree.c
470
VFS_WARN_ON_ONCE(owner->ns_type != CLONE_NEWUSER);
kernel/nstree.c
564
ns = lookup_ns_id(kls->user_ns_id, CLONE_NEWUSER);
kernel/user_namespace.c
182
if (!(unshare_flags & CLONE_NEWUSER))
tools/testing/selftests/bpf/prog_tests/deny_namespace.c
41
if (unshare(CLONE_NEWUSER))
tools/testing/selftests/bpf/prog_tests/token.c
254
if (unshare(CLONE_NEWUSER))
tools/testing/selftests/capabilities/test_execve.c
112
} else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) {
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
302
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
53
ASSERT_EQ(unshare(CLONE_NEWNS|CLONE_NEWUSER), 0);
tools/testing/selftests/filesystems/nsfs/owner.c
42
if (unshare(CLONE_NEWUTS | CLONE_NEWUSER))
tools/testing/selftests/filesystems/nsfs/owner.c
81
if (unshare(CLONE_NEWUSER))
tools/testing/selftests/filesystems/nsfs/pidns.c
50
pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL);
tools/testing/selftests/filesystems/statmount/statmount_test.c
143
ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID);
tools/testing/selftests/filesystems/utils.c
288
pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER | CLONE_NEWNS);
tools/testing/selftests/filesystems/utils.c
398
pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM);
tools/testing/selftests/filesystems/utils.c
490
ret = unshare(CLONE_NEWNS|CLONE_NEWUSER);
tools/testing/selftests/filesystems/utils.c
525
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/filesystems/utils.h
35
if (setns(fd, CLONE_NEWUSER))
tools/testing/selftests/mount/nosymfollow-test.c
99
if (unshare(CLONE_NEWUSER) != 0)
tools/testing/selftests/mount/unprivileged-remount-test.c
162
if (unshare(CLONE_NEWUSER) !=0) {
tools/testing/selftests/mount/unprivileged-remount-test.c
31
#ifndef CLONE_NEWUSER
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1211
pid = do_clone(get_userns_fd_cb, NULL, CLONE_NEWUSER);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
187
if (unshare(CLONE_NEWUSER))
tools/testing/selftests/mount_setattr/mount_setattr_test.c
30
#ifndef CLONE_NEWUSER
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
24
#ifndef CLONE_NEWUSER
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
85
if (unshare(CLONE_NEWUSER))
tools/testing/selftests/namespaces/cred_change_test.c
177
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
208
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
293
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
324
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
40
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
412
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
442
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
470
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
582
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
613
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
71
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/cred_change_test.c
716
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/cred_change_test.c
747
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/file_handle_test.c
1120
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
1269
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
472
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
601
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
730
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
859
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/file_handle_test.c
991
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/listns_pagination_bug.c
30
.ns_type = CLONE_NEWUSER, /* Filter by user namespace */
tools/testing/selftests/namespaces/listns_permissions_test.c
614
req.ns_type = CLONE_NEWUSER;
tools/testing/selftests/namespaces/listns_test.c
490
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/ns_active_ref_test.c
2570
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/ns_active_ref_test.c
2642
req.ns_type = CLONE_NEWUSER;
tools/testing/selftests/namespaces/ns_active_ref_test.c
311
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/nsid_test.c
517
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/namespaces/regression_pidfd_setns_test.c
52
if (unshare(CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET | CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/regression_pidfd_setns_test.c
95
child_pid = create_child(&pidfd, CLONE_NEWUSER | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWNET);
tools/testing/selftests/namespaces/siocgskns_test.c
1312
.ns_type = CLONE_NEWNET | CLONE_NEWUSER,
tools/testing/selftests/namespaces/siocgskns_test.c
995
.ns_type = CLONE_NEWNET | CLONE_NEWUSER,
tools/testing/selftests/namespaces/stress_test.c
282
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/stress_test.c
316
if (setns(userns_fd, CLONE_NEWUSER) < 0) {
tools/testing/selftests/namespaces/stress_test.c
350
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/stress_test.c
41
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/namespaces/stress_test.c
568
.ns_type = CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWUTS,
tools/testing/selftests/namespaces/stress_test.c
97
.ns_type = CLONE_NEWUSER,
tools/testing/selftests/net/af_unix/diag_uid.c
41
.unshare = CLONE_NEWUSER,
tools/testing/selftests/pid_namespace/regression_enomem.c
27
EXPECT_EQ(0, unshare(CLONE_NEWUSER));
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
100
flags |= CLONE_NEWUSER;
tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
99
if (!(flags & CLONE_NEWUSER) && geteuid() != 0)
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
251
ASSERT_EQ(setns(self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID), 0);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
53
self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
75
self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
97
self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_info_test.c
104
self->child_pid4 = create_child(&self->child_pidfd4, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_info_test.c
98
self->child_pid3 = create_child(&self->child_pidfd3, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_setattr_test.c
35
self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_setns_test.c
141
if (self->nsfds[PIDFD_NS_USER] >= 0 && unshare(CLONE_NEWUSER) < 0)
tools/testing/selftests/pidfd/pidfd_setns_test.c
160
self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_setns_test.c
164
self->child_pid1 = create_child(&self->child_pidfd1, CLONE_NEWUSER);
tools/testing/selftests/pidfd/pidfd_setns_test.c
214
self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/pidfd/pidfd_setns_test.c
218
self->child_pid2 = create_child(&self->child_pidfd2, CLONE_NEWUSER);
tools/testing/selftests/pidfd/pidfd_setns_test.c
408
ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0);
tools/testing/selftests/pidfd/pidfd_setns_test.c
418
ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET),
tools/testing/selftests/pidfd/pidfd_setns_test.c
42
[PIDFD_NS_USER] = { "user", CLONE_NEWUSER, PIDFD_GET_USER_NAMESPACE, },
tools/testing/selftests/pidfd/pidfd_xattr_test.c
35
self->child_pid = create_child(&self->child_pidfd, CLONE_NEWUSER | CLONE_NEWPID);
tools/testing/selftests/rlimits/rlimits-per-userns.c
73
if (unshare(CLONE_NEWUSER) < 0)
tools/testing/selftests/safesetid/safesetid-test.c
242
int clone_flags = CLONE_NEWUSER;
tools/testing/selftests/safesetid/safesetid-test.c
28
#ifndef CLONE_NEWUSER
tools/testing/selftests/seccomp/seccomp_bpf.c
3681
ASSERT_EQ(unshare(CLONE_NEWUSER | CLONE_NEWPID), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3799
ASSERT_EQ(unshare(CLONE_NEWUSER), 0) {
tools/testing/selftests/uevent/uevent_filtering.c
128
if (post_flags & CLONE_NEWUSER) {
tools/testing/selftests/uevent/uevent_filtering.c
129
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/uevent/uevent_filtering.c
275
if (pre_flags & CLONE_NEWUSER) {
tools/testing/selftests/uevent/uevent_filtering.c
276
ret = unshare(CLONE_NEWUSER);
tools/testing/selftests/uevent/uevent_filtering.c
418
ret = do_test(CLONE_NEWUSER, 0, true, sync_fd);
tools/testing/selftests/uevent/uevent_filtering.c
432
ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd);
tools/testing/selftests/uevent/uevent_filtering.c
462
ret = do_test(0, CLONE_NEWUSER, true, sync_fd);
tools/testing/selftests/uevent/uevent_filtering.c
478
ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
255
unshare(CLONE_NEWUSER);