Searched defs:netns (Results 1 - 2 of 2) sorted by relevance

/systemd/src/core/
H A Dnamespace.c651 _cleanup_close_ int netns = -1; local
669 netns = receive_one_fd(netns_storage_socket[0], MSG_DONTWAIT);
670 if (netns == -EAGAIN) {
680 netns = open("/proc/self/ns/net", O_RDONLY|O_CLOEXEC|O_NOCTTY);
681 if (netns < 0) {
688 } else if (netns < 0) {
689 r = netns;
694 if (setns(netns, CLONE_NEWNET) < 0) {
702 q = send_one_fd(netns_storage_socket[1], netns, MSG_DONTWAIT);
/systemd/src/basic/
H A Dutil.c674 const char *netns; local
676 netns = procfs_file_alloca(pid, "ns/net");
677 netnsfd = open(netns, O_RDONLY|O_NOCTTY|O_CLOEXEC);

Completed in 13 milliseconds