Lines Matching refs:NETNS_RUN_DIR
219 dir = opendir(NETNS_RUN_DIR); in netns_map_init()
243 dir = opendir(NETNS_RUN_DIR); in netns_get_name()
339 dir = opendir(NETNS_RUN_DIR); in netns_list()
433 snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name); in netns_pids()
493 dir = opendir(NETNS_RUN_DIR); in netns_identify_pid()
500 NETNS_RUN_DIR, strerror(errno)); in netns_identify_pid()
513 snprintf(name_path, sizeof(name_path), "%s/%s", NETNS_RUN_DIR, in netns_identify_pid()
560 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, nsname); in on_netns_del()
586 if (mkdir(NETNS_RUN_DIR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)) { in create_netns_dir()
589 NETNS_RUN_DIR, strerror(errno)); in create_netns_dir()
618 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_add()
629 while (mount("", NETNS_RUN_DIR, "none", MS_SHARED | MS_REC, NULL)) { in netns_add()
633 NETNS_RUN_DIR, strerror(errno)); in netns_add()
638 if (mount(NETNS_RUN_DIR, NETNS_RUN_DIR, "none", MS_BIND | MS_REC, NULL)) { in netns_add()
640 NETNS_RUN_DIR, NETNS_RUN_DIR, strerror(errno)); in netns_add()
718 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_set()
745 if (inotify_add_watch(fd, NETNS_RUN_DIR, IN_CREATE | IN_DELETE) < 0) { in netns_monitor()