Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c97 ret = setns(fd, CLONE_NEWTIME); in switch_timens()
345 ASSERT_NE(setns(self->pidfd, 0), 0); in TEST_F()
348 ASSERT_NE(setns(self->pidfd, -1), 0); in TEST_F()
351 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F()
354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
391 ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) { in TEST_F()
427 ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) { in TEST_F()
466 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
510 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
D.gitignore17 /setns-dcache
18 /setns-sysvipc
DMakefile19 TEST_GEN_PROGS += setns-dcache
20 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()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_uts_container_005.cpp73 ret = setns(fd, setFlag); in UtsContainerTest()
96 ret = setns(fd, setFlag); in UtsContainerTest()
DIt_uts_container_006.cpp52 int ret = setns(fd, CLONE_NEWUTS); in UtsContainerTest()
DIt_user_container_004.cpp65 ret = setns(fd, CLONE_NEWUSER); in childFunc()
DIt_mnt_container_008.cpp73 ret = setns(fd, setFlag); in ItMntContainer008()
DIt_net_container_004.cpp74 ret = setns(fd, CLONE_NEWNET); in ChildFun()
DIt_time_container_003.cpp55 ret = setns(fd, CLONE_NEWTIME); in childFunc()
DIt_pid_container_031.cpp76 ret = setns(fd, CLONE_NEWPID); in ChildFun()
DIt_ipc_container_002.cpp137 ret = setns(fd, CLONE_NEWIPC); in ItIpcContainer002()
DIt_ipc_container_006.cpp100 ret = setns(fd, CLONE_NEWIPC); in childFunc()
/kernel/linux/linux-5.10/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 test_flow_dissector_reattach()
671 err = setns(saved_net, CLONE_NEWNET); in test_flow_dissector_reattach()
/kernel/linux/linux-5.10/tools/build/feature/
Dtest-setns.c7 return setns(0, 0); in main()
DMakefile64 test-setns.bin \
130 $(OUTPUT)test-setns.bin:
/kernel/linux/linux-5.10/tools/perf/util/
Dsetns.c7 int setns(int fd, int nstype) in setns() function
Dnamespaces.c233 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
254 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
Dnamespaces.h17 int setns(int fd, int nstype);
/kernel/liteos_a/testsuites/unittest/fuzz/
Dsetns_fuzzer.cpp43 setns(number0, number1); in TestSetns()
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
Dgettime_perf.c85 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dprocfs.c33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dtimens.c52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()

123