Refactor network namespace specific functions in generic helpers

This commit is contained in:
Xℹ Ruoyao
2021-03-04 00:04:36 +08:00
parent a959cd2812
commit 54c2459d56
11 changed files with 88 additions and 59 deletions
+1 -1
View File
@@ -6,6 +6,6 @@
int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd);
int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd);
int fd_is_network_ns(int fd);
int fd_is_ns(int fd, unsigned long nsflag);
int detach_mount_namespace(void);