]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/start.h
Enable network namespace sharing in lxc-start
[mirror_lxc.git] / src / lxc / start.h
index c35c5c481d791fa617dd524bcf2139dc1042bc6e..c1f790901580491846bac02d4578645a9d5db699 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <lxc/state.h>
 #include <sys/param.h>
+#include "namespace.h"
 
 struct lxc_conf;
 
@@ -39,6 +40,23 @@ struct lxc_operations {
 
 struct cgroup_desc;
 
+enum {
+       LXC_NS_MNT,
+       LXC_NS_PID,
+       LXC_NS_UTS,
+       LXC_NS_IPC,
+       LXC_NS_USER,
+       LXC_NS_NET,
+       LXC_NS_MAX
+};
+
+struct ns_info {
+       const char *proc_name;
+       int clone_flag;
+};
+
+const struct ns_info ns_info[LXC_NS_MAX];
+
 struct lxc_handler {
        pid_t pid;
        char *name;