Home
last modified time | relevance | path

Searched refs:ns_fd (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/containers/share/
Dns_exec.c38 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/minijail/
Dlibminijail.c434 int ns_fd = open(ns_path, O_RDONLY | O_CLOEXEC); in minijail_namespace_enter_vfs() local
435 if (ns_fd < 0) { in minijail_namespace_enter_vfs()
438 j->mountns_fd = ns_fd; in minijail_namespace_enter_vfs()
472 int ns_fd = open(ns_path, O_RDONLY | O_CLOEXEC); in minijail_namespace_enter_net() local
473 if (ns_fd < 0) { in minijail_namespace_enter_net()
476 j->netns_fd = ns_fd; in minijail_namespace_enter_net()