Home
last modified time | relevance | path

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

12345

/openbmc/linux/Documentation/userspace-api/
H A Dunshare.rst1 unshare system call
4 This document describes the new system call, unshare(). The document
61 where unshare() can be used.
89 ability to unshare() after the process was created can be very
111 be shared, similar flags in unshare(int flags) should specify
131 int unshare(int flags);
192 directly by unshare() because of the following two reasons.
239 b) unshare() system call service function
259 7.2) unshare() system call service function
299 The test for unshare() should test the following:
[all …]
H A Dindex.rst22 unshare
/openbmc/linux/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c29 int unshare; in FIXTURE_VARIANT() local
35 .unshare = 0, in FIXTURE_VARIANT_ADD()
41 .unshare = CLONE_NEWUSER, in FIXTURE_VARIANT_ADD()
51 if (variant->unshare) in FIXTURE_SETUP()
52 ASSERT_EQ(unshare(variant->unshare), 0); in FIXTURE_SETUP()
/openbmc/linux/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()
/openbmc/linux/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()
H A Dproc-subset-pid.c42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc()
/openbmc/linux/tools/testing/selftests/nsfs/
H A Downer.c42 if (unshare(CLONE_NEWUTS | CLONE_NEWUSER)) in main()
81 if (unshare(CLONE_NEWUSER)) in main()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_flow_dissector.sh30 if ! unshare --net $bpftool prog attach pinned \
39 if unshare --net $bpftool prog attach pinned \
/openbmc/linux/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c30 if (unshare(CLONE_NEWNS) == -1) { in main()
/openbmc/linux/tools/testing/selftests/exec/
H A Drecursion-depth.c29 if (unshare(CLONE_NEWNS) == -1) { in main()
/openbmc/linux/tools/testing/selftests/net/
H A Dso_netns_cookie.c41 if (unshare(CLONE_NEWNET)) in main()
/openbmc/linux/Documentation/translations/zh_CN/userspace-api/
H A Dindex.rst37 * unshare
H A Dno_new_privs.rst55 原则上,当 ``no_new_privs`` 被置位时, ``unshare(2)`` 和 ``clone(2)`` 的几个选
/openbmc/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c85 if (unshare(CLONE_NEWUSER)) in create_and_enter_userns()
115 if (unshare(CLONE_NEWNS)) in prepare_unpriv_mountns()
/openbmc/linux/tools/testing/selftests/timens/
H A Dtimens.h56 if (unshare(CLONE_NEWTIME)) { in unshare_timens()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Ddeny_namespace.c41 if (unshare(CLONE_NEWUSER)) in create_user_ns()
H A Dbind_perm.c16 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
/openbmc/linux/samples/binderfs/
H A Dbinderfs_example.c23 ret = unshare(CLONE_NEWNS); in main()
/openbmc/linux/tools/testing/selftests/openat2/
H A Dhelpers.h87 #define E_unshare(...) E_func(unshare, __VA_ARGS__)
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_audit.sh15 [ "${1}" != "run" ] && { unshare -n "${0}" run; exit $?; }

12345