Lines Matching refs:NETNS_RUN_DIR
214 dir = opendir(NETNS_RUN_DIR); in netns_map_init()
238 dir = opendir(NETNS_RUN_DIR); in netns_get_name()
334 dir = opendir(NETNS_RUN_DIR); in netns_list()
455 snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name); in netns_pids()
527 dir = opendir(NETNS_RUN_DIR); in netns_identify()
534 NETNS_RUN_DIR, strerror(errno)); in netns_identify()
547 snprintf(name_path, sizeof(name_path), "%s/%s", NETNS_RUN_DIR, in netns_identify()
567 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, nsname); in on_netns_del()
593 if (mkdir(NETNS_RUN_DIR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)) { in create_netns_dir()
596 NETNS_RUN_DIR, strerror(errno)); in create_netns_dir()
625 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_add()
636 while (mount("", NETNS_RUN_DIR, "none", MS_SHARED | MS_REC, NULL)) { in netns_add()
640 NETNS_RUN_DIR, strerror(errno)); in netns_add()
645 if (mount(NETNS_RUN_DIR, NETNS_RUN_DIR, "none", MS_BIND, NULL)) { in netns_add()
647 NETNS_RUN_DIR, NETNS_RUN_DIR, strerror(errno)); in netns_add()
724 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_set()
750 if (inotify_add_watch(fd, NETNS_RUN_DIR, IN_CREATE | IN_DELETE) < 0) { in netns_monitor()