Home
last modified time | relevance | path

Searched refs:setns (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.12.1/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c148 ret = setns(fd, CLONE_NEWTIME); in switch_timens()
483 ASSERT_NE(setns(self->pidfd, 0), 0); in TEST_F()
486 ASSERT_NE(setns(self->pidfd, -1), 0); in TEST_F()
489 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F()
492 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
502 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
529 ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) { in TEST_F()
565 ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) { in TEST_F()
601 ASSERT_EQ(setns(self->child_pidfd_derived_nsfds1[i], info->flag), 0) { in TEST_F()
640 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
[all …]
/linux-6.12.1/tools/testing/selftests/proc/
D.gitignore22 /setns-dcache
23 /setns-sysvipc
DMakefile25 TEST_GEN_PROGS += setns-dcache
26 TEST_GEN_PROGS += setns-sysvipc
Dsetns-dcache.c104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
Dsetns-sysvipc.c103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_reattach.c84 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()
Dxdp_bonding.c37 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()
Dsk_assign.c294 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
/linux-6.12.1/tools/testing/selftests/net/rds/
Dtest.py24 setns = libc.setns variable
44 ret = setns(f.fileno(), 0)
/linux-6.12.1/tools/build/feature/
Dtest-setns.c7 return setns(0, 0); in main()
DMakefile72 test-setns.bin \
164 $(OUTPUT)test-setns.bin:
/linux-6.12.1/tools/perf/util/
Dsetns.c7 int setns(int fd, int nstype) in setns() function
Dnamespaces.h19 int setns(int fd, int nstype);
Dnamespaces.c306 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
327 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dsetup.c133 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/timens/
Dgettime_perf.c93 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dprocfs.c31 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
Dtimens.c50 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
/linux-6.12.1/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
/linux-6.12.1/tools/build/
DMakefile.feature71 setns \
/linux-6.12.1/tools/testing/selftests/bpf/
Dnetwork_helpers.c525 err = setns(nsfd, CLONE_NEWNET); in open_netns()
545 if (setns(token->orig_netns_fd, CLONE_NEWNET)) in close_netns()
/linux-6.12.1/kernel/
Dnsproxy.c546 SYSCALL_DEFINE2(setns, int, fd, int, flags) in SYSCALL_DEFINE2() argument
/linux-6.12.1/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl314 303 n64 setns sys_setns
/linux-6.12.1/arch/mips/kernel/syscalls/
Dsyscall_n64.tbl314 303 n64 setns sys_setns

123