/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 97 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 | .gitignore | 17 /setns-dcache 18 /setns-sysvipc
|
D | Makefile | 19 TEST_GEN_PROGS += setns-dcache 20 TEST_GEN_PROGS += setns-sysvipc
|
D | setns-dcache.c | 104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
|
D | setns-sysvipc.c | 103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
D | It_uts_container_005.cpp | 73 ret = setns(fd, setFlag); in UtsContainerTest() 96 ret = setns(fd, setFlag); in UtsContainerTest()
|
D | It_uts_container_006.cpp | 52 int ret = setns(fd, CLONE_NEWUTS); in UtsContainerTest()
|
D | It_user_container_004.cpp | 65 ret = setns(fd, CLONE_NEWUSER); in childFunc()
|
D | It_mnt_container_008.cpp | 73 ret = setns(fd, setFlag); in ItMntContainer008()
|
D | It_net_container_004.cpp | 74 ret = setns(fd, CLONE_NEWNET); in ChildFun()
|
D | It_time_container_003.cpp | 55 ret = setns(fd, CLONE_NEWTIME); in childFunc()
|
D | It_pid_container_031.cpp | 76 ret = setns(fd, CLONE_NEWPID); in ChildFun()
|
D | It_ipc_container_002.cpp | 137 ret = setns(fd, CLONE_NEWIPC); in ItIpcContainer002()
|
D | It_ipc_container_006.cpp | 100 ret = setns(fd, CLONE_NEWIPC); in childFunc()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector_reattach.c | 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 test_flow_dissector_reattach() 671 err = setns(saved_net, CLONE_NEWNET); in test_flow_dissector_reattach()
|
/kernel/linux/linux-5.10/tools/build/feature/ |
D | test-setns.c | 7 return setns(0, 0); in main()
|
D | Makefile | 64 test-setns.bin \ 130 $(OUTPUT)test-setns.bin:
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | setns.c | 7 int setns(int fd, int nstype) in setns() function
|
D | namespaces.c | 233 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter() 254 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
|
D | namespaces.h | 17 int setns(int fd, int nstype);
|
/kernel/liteos_a/testsuites/unittest/fuzz/ |
D | setns_fuzzer.cpp | 43 setns(number0, number1); in TestSetns()
|
/kernel/linux/linux-5.10/tools/testing/selftests/timens/ |
D | gettime_perf.c | 85 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
D | procfs.c | 33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
|
D | clock_nanosleep.c | 136 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
D | timens.c | 52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
|