Home
last modified time | relevance | path

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

12

/Linux-v5.4/Documentation/userspace-api/
Dunshare.rst1 unshare system call
4 This document describes the new system call, unshare(). The document
42 unshare() system call adds a primitive to the Linux thread model that
43 allows threads to selectively 'unshare' any resources that were being
44 shared at the time of their creation. unshare() was conceptualized by
46 of the discussion on POSIX threads on Linux. unshare() augments the
48 shared resources without creating a new process. unshare() is a natural
55 unshare() would be useful to large application frameworks such as PAM
58 when creating a new process using fork or clone, unshare() can benefit
61 where unshare() can be used.
[all …]
Dindex.rst21 unshare
Dno_new_privs.rst61 several options to ``unshare(2)`` and ``clone(2)`` would be safe when
/Linux-v5.4/tools/testing/selftests/proc/
Dsetns-dcache.c54 if (unshare(CLONE_NEWNET) == -1) { in main()
75 if (unshare(CLONE_NEWNET) == -1) { in main()
Dsetns-sysvipc.c53 if (unshare(CLONE_NEWIPC) == -1) { in main()
74 if (unshare(CLONE_NEWIPC) == -1) { in main()
Dproc-loadavg-001.c31 if (unshare(CLONE_NEWPID) == -1) { in main()
Dfd-001-lookup.c104 if (unshare(CLONE_FILES) == -1) in main()
Dproc-pid-vm.c56 if (unshare(CLONE_NEWNS) == -1) { in make_private_tmp()
/Linux-v5.4/tools/testing/selftests/mount/
Dunprivileged-remount-test.c162 if (unshare(CLONE_NEWUSER) !=0) { in create_and_enter_userns()
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-v5.4/tools/testing/selftests/nsfs/
Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main()
81 if (unshare(CLONE_NEWUSER)) in main()
/Linux-v5.4/tools/testing/selftests/uevent/
Duevent_filtering.c129 ret = unshare(CLONE_NEWUSER); in uevent_listener()
139 ret = unshare(CLONE_NEWNET); in uevent_listener()
275 ret = unshare(CLONE_NEWUSER); in do_test()
285 ret = unshare(CLONE_NEWNET); in do_test()
/Linux-v5.4/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c81 ret = unshare(CLONE_NEWUSER); in change_to_userns()
117 ret = unshare(CLONE_NEWNS); in change_to_mountns()
/Linux-v5.4/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/Linux-v5.4/tools/testing/selftests/exec/
Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/Linux-v5.4/samples/binderfs/
Dbinderfs_example.c24 ret = unshare(CLONE_NEWNS); in main()
/Linux-v5.4/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-v5.4/tools/testing/selftests/pidfd/
Dpidfd_test.c140 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
145 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
/Linux-v5.4/tools/testing/selftests/bpf/
Dcgroup_helpers.c105 if (unshare(CLONE_NEWNS)) { in setup_cgroup_environment()
/Linux-v5.4/tools/testing/selftests/filesystems/
Ddevpts_pts.c290 ret = unshare(CLONE_NEWNS); in main()
/Linux-v5.4/fs/lockd/
Dsvc4proc.c546 PROC(unshare, shareargs, shareres, args, res, Ck+St+1),
Dsvcproc.c590 PROC(unshare, shareargs, shareres, args, res, Ck+St+1),
/Linux-v5.4/arch/mips/kernel/syscalls/
Dsyscall_n32.tbl277 266 n32 unshare sys_unshare
Dsyscall_n64.tbl273 262 n64 unshare sys_unshare
/Linux-v5.4/arch/ia64/kernel/syscalls/
Dsyscall.tbl284 272 common unshare sys_unshare
/Linux-v5.4/tools/perf/
Dbuiltin-top.c624 unshare(CLONE_FS); in display_thread_tui()
676 unshare(CLONE_FS); in display_thread()

12