/linux-6.12.1/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 138 if (post_flags & CLONE_NEWNET) { in uevent_listener() 139 ret = unshare(CLONE_NEWNET); in uevent_listener() 285 if (pre_flags & CLONE_NEWNET) { in do_test() 286 ret = unshare(CLONE_NEWNET); in do_test() 403 ret = do_test(CLONE_NEWNET, 0, true, sync_fd); in TEST() 432 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST() 447 ret = do_test(0, CLONE_NEWNET, true, sync_fd); in TEST() 478 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
|
/linux-6.12.1/tools/testing/selftests/net/af_unix/ |
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()
|
D | scm_rights.c | 105 ret = unshare(CLONE_NEWNET); in FIXTURE_SETUP()
|
/linux-6.12.1/tools/testing/selftests/proc/ |
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()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
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()
|
D | sk_assign.c | 50 if (CHECK_FAIL(unshare(CLONE_NEWNET))) in configure_stack() 294 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
|
D | bind_perm.c | 14 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
D | tcp_custom_syncookie.c | 35 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in setup_netns()
|
D | connect_ping.c | 101 if (!ASSERT_OK(unshare(CLONE_NEWNET | CLONE_NEWNS), "unshare")) in test_connect_ping()
|
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()
|
D | btf_skc_cls_ingress.c | 30 if (CHECK(unshare(CLONE_NEWNET), "create netns", in prepare_netns()
|
D | bpf_iter_setsockopt.c | 13 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
D | setget_sockopt.c | 25 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
D | sock_fields.c | 50 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
D | tcp_hdr_options.c | 45 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
|
/linux-6.12.1/kernel/ |
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()
|
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/ |
D | setup.c | 125 if (unshare(CLONE_NEWNET) != 0) in unshare_open_netns() 133 if (setns(fd, CLONE_NEWNET)) in switch_ns() 147 if (setns(fd, CLONE_NEWNET)) in switch_close_ns()
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | so_netns_cookie.c | 41 if (unshare(CLONE_NEWNET)) in main()
|
D | so_incoming_cpu.c | 71 ASSERT_EQ(unshare(CLONE_NEWNET), 0); in setup_netns()
|
/linux-6.12.1/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 93 …[PIDFD_NS_NET] = { "net", CLONE_NEWNET, PIDFD_GET_NET_NAMESPACE, … 227 if (self->nsfds[PIDFD_NS_NET] >= 0 && unshare(CLONE_NEWNET) < 0) in FIXTURE_SETUP() 272 if (self->nsfds[PIDFD_NS_NET] >= 0 && unshare(CLONE_NEWNET) < 0) { in FIXTURE_SETUP() 326 if (self->nsfds[PIDFD_NS_NET] >= 0 && unshare(CLONE_NEWNET) < 0) { in FIXTURE_SETUP() 502 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
|
/linux-6.12.1/tools/perf/trace/beauty/include/uapi/linux/ |
D | sched.h | 33 #define CLONE_NEWNET 0x40000000 /* New network namespace */ macro
|
/linux-6.12.1/include/uapi/linux/ |
D | sched.h | 33 #define CLONE_NEWNET 0x40000000 /* New network namespace */ macro
|
/linux-6.12.1/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 28 #ifndef CLONE_NEWNET 29 # define CLONE_NEWNET 0x40000000 macro
|
/linux-6.12.1/include/net/ |
D | net_namespace.h | 214 if (flags & CLONE_NEWNET) in copy_net_ns()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | network_helpers.c | 525 err = setns(nsfd, CLONE_NEWNET); in open_netns() 545 if (setns(token->orig_netns_fd, CLONE_NEWNET)) in close_netns()
|