Searched refs:ns_fd (Results 1 – 8 of 8) sorted by relevance
/external/ltp/testcases/kernel/containers/share/ |
D | ns_exec.c | 38 int ns_fd[NS_TOTAL]; variable 65 ns_fd[ns_fds] = fd; in open_ns_fd() 81 close(ns_fd[i]); in close_ns_fd() 112 memset(ns_fd, 0, sizeof(ns_fd)); in main() 133 if (syscall(__NR_setns, ns_fd[i], 0) == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_ns07.c | 27 int fd, ns_fd; in test_request() local 30 ns_fd = ioctl(fd, request); in test_request() 31 if (ns_fd == -1) { in test_request() 38 SAFE_CLOSE(ns_fd); in test_request()
|
/external/strace/tests/ |
D | ioctl_nsfs.c | 64 int ns_fd = open(path, O_RDONLY); in test_clone() local 65 if (ns_fd == -1) in test_clone() 68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS); in test_clone() 69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd)); in test_clone()
|
/external/strace/tests-mx32/ |
D | ioctl_nsfs.c | 64 int ns_fd = open(path, O_RDONLY); in test_clone() local 65 if (ns_fd == -1) in test_clone() 68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS); in test_clone() 69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd)); in test_clone()
|
/external/strace/tests-m32/ |
D | ioctl_nsfs.c | 64 int ns_fd = open(path, O_RDONLY); in test_clone() local 65 if (ns_fd == -1) in test_clone() 68 int userns_fd = ioctl(ns_fd, NS_GET_USERNS); in test_clone() 69 printf("ioctl(%d, NS_GET_USERNS) = %s\n", ns_fd, sprintrc(userns_fd)); in test_clone()
|
/external/bcc/src/cc/ |
D | libbpf.c | 975 int res, kfd = -1, pfd = -1, ns_fd = -1; in bpf_attach_uprobe() local 1007 ns_fd = enter_mount_ns(pid); in bpf_attach_uprobe() 1015 exit_mount_ns(ns_fd); in bpf_attach_uprobe() 1016 ns_fd = -1; in bpf_attach_uprobe() 1034 exit_mount_ns(ns_fd); in bpf_attach_uprobe()
|
/external/minijail/ |
D | libminijail.c | 529 int ns_fd = open(ns_path, O_RDONLY); in minijail_namespace_enter_vfs() local 530 if (ns_fd < 0) { in minijail_namespace_enter_vfs() 533 j->mountns_fd = ns_fd; in minijail_namespace_enter_vfs() 602 int ns_fd = open(ns_path, O_RDONLY); in minijail_namespace_enter_net() local 603 if (ns_fd < 0) { in minijail_namespace_enter_net() 606 j->netns_fd = ns_fd; in minijail_namespace_enter_net()
|
/external/libnl/lib/route/ |
D | link.c | 1194 __ADD(LINK_ATTR_NS_FD, ns_fd),
|