/openbmc/linux/tools/testing/selftests/uevent/ |
H A D | uevent_filtering.c | 137 if (post_flags & CLONE_NEWNET) { in uevent_listener() 138 ret = unshare(CLONE_NEWNET); in uevent_listener() 283 if (pre_flags & CLONE_NEWNET) { in do_test() 284 ret = unshare(CLONE_NEWNET); in do_test() 401 ret = do_test(CLONE_NEWNET, 0, true, sync_fd); in TEST() 430 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST() 445 ret = do_test(0, CLONE_NEWNET, true, sync_fd); in TEST() 476 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | setns-dcache.c | 54 if (unshare(CLONE_NEWNET) == -1) { in main() 75 if (unshare(CLONE_NEWNET) == -1) { in main() 104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
|
/openbmc/linux/tools/testing/selftests/net/af_unix/ |
H A D | unix_connect.c | 53 .flags = CLONE_NEWNET, in FIXTURE_VARIANT_ADD() 62 .flags = CLONE_NEWNET, in FIXTURE_VARIANT_ADD() 89 .flags = CLONE_NEWNET, in FIXTURE_VARIANT_ADD() 98 .flags = CLONE_NEWNET, in FIXTURE_VARIANT_ADD()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_reattach.c | 76 err = unshare(CLONE_NEWNET); in unshare_net() 84 setns(old_net, CLONE_NEWNET); in unshare_net() 455 err = setns(old_net, CLONE_NEWNET); in test_link_update_netns_gone() 539 err = setns(old_net, CLONE_NEWNET); in test_link_get_info() 567 setns(old_net, CLONE_NEWNET); in test_link_get_info() 647 err = setns(init_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach() 671 err = setns(saved_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach()
|
H A D | bind_perm.c | 16 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
H A D | sk_assign.c | 51 if (CHECK_FAIL(unshare(CLONE_NEWNET))) in configure_stack() 339 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
|
H A D | connect_ping.c | 101 if (!ASSERT_OK(unshare(CLONE_NEWNET | CLONE_NEWNS), "unshare")) in test_connect_ping()
|
H A D | setget_sockopt.c | 25 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
H A D | btf_skc_cls_ingress.c | 30 if (CHECK(unshare(CLONE_NEWNET), "create netns", in prepare_netns()
|
H A D | bpf_iter_setsockopt.c | 13 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
H A D | xdp_bonding.c | 37 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns"); in restore_root_netns() 50 err = setns(nsfd, CLONE_NEWNET); in setns_by_name()
|
H A D | sock_fields.c | 50 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
H A D | tcp_hdr_options.c | 45 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
/openbmc/linux/kernel/ |
H A D | nsproxy.c | 158 CLONE_NEWPID | CLONE_NEWNET | in copy_namespaces() 220 CLONE_NEWNET | CLONE_NEWPID | CLONE_NEWCGROUP | in unshare_nsproxy_namespaces() 279 CLONE_NEWNET | CLONE_NEWTIME | CLONE_NEWUSER | in check_setns_flags() 304 if (flags & CLONE_NEWNET) in check_setns_flags() 478 if (flags & CLONE_NEWNET) { in validate_nsset()
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 46 [PIDFD_NS_NET] = { "net", CLONE_NEWNET, }, 160 CLONE_NEWUSER | CLONE_NEWNET); in FIXTURE_SETUP() 181 CLONE_NEWNET); in FIXTURE_SETUP() 210 CLONE_NEWNET); in FIXTURE_SETUP() 364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | so_netns_cookie.c | 41 if (unshare(CLONE_NEWNET)) in main()
|
H A D | so_incoming_cpu.c | 71 ASSERT_EQ(unshare(CLONE_NEWNET), 0); in setup_netns()
|
/openbmc/linux/include/uapi/linux/ |
H A D | sched.h | 33 #define CLONE_NEWNET 0x40000000 /* New network namespace */ macro
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | sched.h | 33 #define CLONE_NEWNET 0x40000000 /* New network namespace */ macro
|
/openbmc/linux/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 28 #ifndef CLONE_NEWNET 29 # define CLONE_NEWNET 0x40000000 macro
|
/openbmc/qemu/system/ |
H A D | qemu-seccomp.c | 121 FORBID_CLONE_FLAG(CLONE_NEWNET); 245 RULE_CLONE_FLAG(CLONE_NEWNET),
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | network_helpers.c | 423 err = setns(nsfd, CLONE_NEWNET); in open_netns() 441 ASSERT_OK(setns(token->orig_netns_fd, CLONE_NEWNET), "setns"); in close_netns()
|
/openbmc/openbmc/poky/meta/recipes-core/glibc/glibc/ |
H A D | 0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch | 14 CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS
|
/openbmc/linux/include/net/ |
H A D | net_namespace.h | 216 if (flags & CLONE_NEWNET) in copy_net_ns()
|
/openbmc/linux/net/core/ |
H A D | net_namespace.c | 472 if (!(flags & CLONE_NEWNET)) in copy_net_ns() 1406 .type = CLONE_NEWNET,
|