Home
last modified time | relevance | path

Searched refs:CLONE_NEWNS (Results 1 – 18 of 18) sorted by relevance

/tools/testing/selftests/firmware/
Dfw_namespace.c20 #ifndef CLONE_NEWNS
21 # define CLONE_NEWNS 0x00020000 macro
101 if (unshare(CLONE_NEWNS) != 0) { in test_fw_in_ns()
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c19 #ifndef CLONE_NEWNS
20 # define CLONE_NEWNS 0x00020000 macro
211 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount()
225 if (unshare(CLONE_NEWNS) != 0) { in test_unpriv_remount()
291 ret = unshare(CLONE_NEWNS); in test_priv_mount_unpriv_remount()
Dnosymfollow-test.c111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/tools/testing/selftests/exec/
Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/tools/include/uapi/linux/
Dsched.h20 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/tools/perf/util/
Dnamespaces.c233 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
254 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
/tools/testing/selftests/bpf/prog_tests/
Dtest_bpffs.c34 err = unshare(CLONE_NEWNS); in fn()
/tools/testing/selftests/bpf/
Dtest_current_pid_tgid_new_ns.c45 if (CHECK_NEWNS(unshare(CLONE_NEWPID | CLONE_NEWNS), in main()
Dcgroup_helpers.c105 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
/tools/testing/selftests/capabilities/
Dtest_execve.c103 if (unshare(CLONE_NEWNS) == 0) { in create_and_enter_ns()
121 } else if (unshare(CLONE_NEWUSER | CLONE_NEWNS) == 0) { in create_and_enter_ns()
/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c42 [PIDFD_NS_MNT] = { "mnt", CLONE_NEWNS, },
178 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP()
207 CLONE_NEWUSER | CLONE_NEWNS | in FIXTURE_SETUP()
Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
Dpidfd_test.c175 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
/tools/testing/selftests/filesystems/
Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS); in main()
/tools/testing/selftests/proc/
Dproc-pid-vm.c56 if (unshare(CLONE_NEWNS) == -1) { in make_private_tmp()
/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c43 ret = unshare(CLONE_NEWNS); in change_mountns()
/tools/testing/selftests/openat2/
Dresolve_test.c53 E_unshare(CLONE_NEWNS); in setup_testdir()