/openbmc/linux/tools/testing/selftests/pidfd/ |
H A 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() 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() 527 ASSERT_NE(setns(self->child_pidfd2, info->flag), 0) { in TEST_F() 536 ASSERT_NE(setns(self->child_nsfds2[i], info->flag), 0) { in TEST_F() [all …]
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | .gitignore | 20 /setns-dcache 21 /setns-sysvipc
|
H A D | Makefile | 23 TEST_GEN_PROGS += setns-dcache 24 TEST_GEN_PROGS += setns-sysvipc
|
H A D | setns-dcache.c | 104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
|
H A D | setns-sysvipc.c | 103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
|
/openbmc/linux/tools/build/feature/ |
H A D | test-setns.c | 7 return setns(0, 0); in main()
|
H A D | Makefile | 70 test-setns.bin \ 139 $(OUTPUT)test-setns.bin:
|
/openbmc/linux/tools/perf/util/ |
H A D | setns.c | 7 int setns(int fd, int nstype) in setns() function
|
H A D | namespaces.h | 19 int setns(int fd, int nstype);
|
H A D | namespaces.c | 306 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter() 327 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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 serial_test_flow_dissector_reattach() 671 err = setns(saved_net, CLONE_NEWNET); in serial_test_flow_dissector_reattach()
|
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 | sk_assign.c | 339 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
|
/openbmc/linux/tools/testing/selftests/timens/ |
H A D | gettime_perf.c | 93 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
H A D | clock_nanosleep.c | 136 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
H A D | procfs.c | 31 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
|
H A D | timens.c | 50 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
|
/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/linux/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
|
/openbmc/linux/tools/build/ |
H A D | Makefile.feature | 70 setns \
|
/openbmc/qemu/linux-user/mips/ |
H A D | syscall-args-o32.c.inc | 345 [ 344] = 2, /* setns */
|
/openbmc/qemu/system/ |
H A D | qemu-seccomp.c | 254 { SCMP_SYS(setns), QEMU_SECCOMP_SET_SPAWN },
|
/openbmc/linux/kernel/ |
H A D | nsproxy.c | 546 SYSCALL_DEFINE2(setns, int, fd, int, flags) in SYSCALL_DEFINE2() argument
|
/openbmc/qemu/linux-user/mips64/ |
H A D | syscall_n32.tbl | 319 308 n32 setns sys_setns
|
H A D | syscall_n64.tbl | 314 303 n64 setns sys_setns
|