Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/Documentation/userspace-api/
H A 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 …]
H A Dindex.rst21 unshare
/OK3568_Linux_fs/kernel/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c27 EXPECT_EQ(0, unshare(CLONE_NEWUSER)); in TEST()
29 EXPECT_EQ(0, unshare(CLONE_NEWPID)); in TEST()
/OK3568_Linux_fs/kernel/tools/testing/selftests/mount/
H A 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()
H A Dnosymfollow-test.c99 if (unshare(CLONE_NEWUSER) != 0) in create_and_enter_ns()
111 if (unshare(CLONE_NEWNS) != 0) in create_and_enter_ns()
/OK3568_Linux_fs/kernel/tools/testing/selftests/proc/
H A Dsetns-dcache.c54 if (unshare(CLONE_NEWNET) == -1) { in main()
75 if (unshare(CLONE_NEWNET) == -1) { in main()
H A Dsetns-sysvipc.c53 if (unshare(CLONE_NEWIPC) == -1) { in main()
74 if (unshare(CLONE_NEWIPC) == -1) { in main()
H A Dproc-loadavg-001.c30 if (unshare(CLONE_NEWPID) == -1) { in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/uevent/
H A 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()
/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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_flow_dissector.sh28 if ! unshare --net $bpftool prog attach pinned \
37 if unshare --net $bpftool prog attach pinned \
/OK3568_Linux_fs/buildroot/package/util-linux/
H A Dutil-linux.mk174 $(if $(BR2_PACKAGE_UTIL_LINUX_UNSHARE),--enable-unshare,--disable-unshare) \
222 --disable-unshare \
/OK3568_Linux_fs/kernel/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/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.h86 extern int unshare (int __flags) __THROW;
/OK3568_Linux_fs/kernel/tools/testing/selftests/exec/
H A Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/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.h86 extern int unshare (int __flags) __THROW;
/OK3568_Linux_fs/kernel/tools/testing/selftests/timens/
H A Dtimens.h56 if (unshare(CLONE_NEWTIME)) { in unshare_timens()
/OK3568_Linux_fs/kernel/samples/binderfs/
H A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS); in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/capabilities/
H A 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/openat2/
H A Dhelpers.h87 #define E_unshare(...) E_func(unshare, __VA_ARGS__)
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c34 err = unshare(CLONE_NEWNS); in fn()
/OK3568_Linux_fs/kernel/tools/testing/selftests/pidfd/
H A Dpidfd_test.c164 ret = unshare(CLONE_NEWPID); in test_pidfd_send_signal_recycled_pid_fail()
175 ret = unshare(CLONE_NEWNS); in test_pidfd_send_signal_recycled_pid_fail()
/OK3568_Linux_fs/kernel/tools/testing/selftests/firmware/
H A Dfw_namespace.c101 if (unshare(CLONE_NEWNS) != 0) { in test_fw_in_ns()
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c43 ret = unshare(CLONE_NEWNS); in change_mountns()
283 ret = unshare(CLONE_NEWUSER); in change_userns()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dsideband_evlist.c47 unshare(CLONE_FS); in perf_evlist__poll_thread()

1234