Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/tools/testing/selftests/uevent/
H 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()
/OK3568_Linux_fs/kernel/kernel/
H A Dnsproxy.c265 CLONE_NEWNET | CLONE_NEWTIME | CLONE_NEWUSER | in check_setns_flags()
270 if (flags & CLONE_NEWUSER) in check_setns_flags()
305 if (flags & CLONE_NEWUSER) in put_nsset()
325 if (flags & CLONE_NEWUSER) in prepare_nsset()
406 if (flags & CLONE_NEWUSER) in validate_nsset()
418 if (flags & CLONE_NEWUSER) { in validate_nsset()
504 if (flags & CLONE_NEWUSER) { in commit_nsset()
H A Dfork.c1920 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
1953 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2929 CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWCGROUP| in check_unshare_flags()
3015 if (unshare_flags & CLONE_NEWUSER) in ksys_unshare()
H A Duser_namespace.c160 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns()
1371 .type = CLONE_NEWUSER,
H A Dcred.c365 if (clone_flags & CLONE_NEWUSER) { in copy_creds()
/OK3568_Linux_fs/kernel/tools/testing/selftests/pidfd/
H 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()
H A Dpidfd_fdinfo_test.c98 if (!(flags & CLONE_NEWUSER) && geteuid() != 0) in clone_newns()
99 flags |= CLONE_NEWUSER; in clone_newns()
/OK3568_Linux_fs/kernel/tools/testing/selftests/nsfs/
H A Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main()
81 if (unshare(CLONE_NEWUSER)) in main()
H A Dpidns.c50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c19 #ifndef CLONE_NEWUSER
20 # define CLONE_NEWUSER 0x10000000 macro
181 int clone_flags = CLONE_NEWUSER; in test_userns()
/OK3568_Linux_fs/kernel/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) { in create_and_enter_userns()
H A Dnosymfollow-test.c99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
/OK3568_Linux_fs/kernel/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dsched.h28 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dsched.h28 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/bits/
H A Dsched.h70 # define CLONE_NEWUSER 0x10000000 /* New user namespace. */ macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/bits/
H A Dsched.h70 # define CLONE_NEWUSER 0x10000000 /* New user namespace. */ macro
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/OK3568_Linux_fs/kernel/include/linux/
H A Dnsproxy.h62 if (set->flags & CLONE_NEWUSER) in nsset_cred()
H A Duser_namespace.h162 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dsched.h31 #define CLONE_NEWUSER 0x10000000 /* New user namespace */ macro
/OK3568_Linux_fs/kernel/fs/
H A Dnsfs.c206 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
/OK3568_Linux_fs/kernel/tools/testing/selftests/capabilities/
H A Dtest_execve.c121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c283 ret = unshare(CLONE_NEWUSER); in change_userns()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/
H A Dutils.py1624 CLONE_NEWUSER = 0x10000000
1633 ret = libc.unshare(CLONE_NEWNET | CLONE_NEWUSER)

12