Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/tools/testing/selftests/pid_namespace/
Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_time_container_002.cpp113 ret = unshare(CLONE_NEWTIME); in TimeContainerUnshare()
116 ret = unshare(CLONE_NEWTIME); in TimeContainerUnshare()
135 ret = unshare(CLONE_NEWTIME); in TimeContainerUnshare()
DIt_pid_container_029.cpp61 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
93 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
DIt_time_container_006.cpp44 int ret = unshare(CLONE_NEWTIME); in childFunc()
49 ret = unshare(CLONE_NEWTIME); in childFunc()
DIt_pid_container_030.cpp62 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
102 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
DIt_pid_container_027.cpp83 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
111 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
DIt_pid_container_028.cpp83 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
109 ret = unshare(CLONE_NEWPID); in ChildFunClone1()
DIt_mnt_container_005.cpp42 ret = unshare(CLONE_NEWNS); in MntContainerUnshare()
DIt_time_container_008.cpp68 int ret = unshare(CLONE_NEWTIME); in TimeContainerUnshare()
DIt_uts_container_004.cpp38 ret = unshare(CLONE_NEWUTS); in ChildFunc()
DIt_mnt_container_007.cpp42 ret = unshare(CLONE_NEWNS); in ChildFunc()
DIt_mnt_container_006.cpp46 ret = unshare(CLONE_NEWNS); in ChildFunc()
/kernel/linux/linux-5.10/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.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/kernel/linux/linux-5.10/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()
Dnosymfollow-test.c99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
/kernel/linux/linux-5.10/tools/testing/selftests/nsfs/
Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main()
81 if (unshare(CLONE_NEWUSER)) in main()
/kernel/linux/linux-5.10/tools/testing/selftests/uevent/
Duevent_filtering.c128 ret = unshare(CLONE_NEWUSER); in uevent_listener()
138 ret = unshare(CLONE_NEWNET); in uevent_listener()
274 ret = unshare(CLONE_NEWUSER); in do_test()
284 ret = unshare(CLONE_NEWNET); in do_test()
/kernel/liteos_a/testsuites/unittest/fuzz/
Dunshare_fuzzer.cpp42 unshare(number); in TestUnshare()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh28 if ! unshare --net $bpftool prog attach pinned \
37 if unshare --net $bpftool prog attach pinned \
/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()

1234