Home
last modified time | relevance | path

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

/Linux-v4.19/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()
/Linux-v4.19/tools/include/uapi/linux/
Dsched.h17 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/Linux-v4.19/include/uapi/linux/
Dsched.h17 #define CLONE_NEWNS 0x00020000 /* New mount namespace group */ macro
/Linux-v4.19/tools/perf/util/
Dnamespaces.c210 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
229 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
/Linux-v4.19/kernel/
Dnsproxy.c144 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces()
198 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces()
Dfork.c1646 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2365 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND| in check_unshare_flags()
2467 if (unshare_flags & CLONE_NEWNS) in ksys_unshare()
/Linux-v4.19/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()
/Linux-v4.19/tools/testing/selftests/bpf/
Dcgroup_helpers.c51 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
/Linux-v4.19/Documentation/userspace-api/
Dunshare.rst157 CLONE_NEWNS
158 If CLONE_NEWNS is set, the namespace of the caller is
169 EPERM CLONE_NEWNS was specified by a non-root process (process
266 CLONE_NEWNS is set, force CLONE_FS.
/Linux-v4.19/tools/testing/selftests/filesystems/
Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS); in main()
/Linux-v4.19/drivers/base/
Ddevtmpfs.c383 *err = ksys_unshare(CLONE_NEWNS); in devtmpfsd()
/Linux-v4.19/fs/
Dnamespace.c2869 if (likely(!(flags & CLONE_NEWNS))) { in copy_mnt_ns()
3461 .type = CLONE_NEWNS,