diff options
Diffstat (limited to 'kernel/nsproxy.c')
| -rw-r--r-- | kernel/nsproxy.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 09b4ff9711b2..f74e6c00e26d 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | * Pavel Emelianov <xemul@openvz.org> | 13 | * Pavel Emelianov <xemul@openvz.org> |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <linux/slab.h> | ||
| 16 | #include <linux/module.h> | 17 | #include <linux/module.h> |
| 17 | #include <linux/nsproxy.h> | 18 | #include <linux/nsproxy.h> |
| 18 | #include <linux/init_task.h> | 19 | #include <linux/init_task.h> |
| @@ -24,7 +25,18 @@ | |||
| 24 | 25 | ||
| 25 | static struct kmem_cache *nsproxy_cachep; | 26 | static struct kmem_cache *nsproxy_cachep; |
| 26 | 27 | ||
| 27 | struct nsproxy init_nsproxy = INIT_NSPROXY(init_nsproxy); | 28 | struct nsproxy init_nsproxy = { |
| 29 | .count = ATOMIC_INIT(1), | ||
| 30 | .uts_ns = &init_uts_ns, | ||
| 31 | #if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC) | ||
| 32 | .ipc_ns = &init_ipc_ns, | ||
| 33 | #endif | ||
| 34 | .mnt_ns = NULL, | ||
| 35 | .pid_ns = &init_pid_ns, | ||
| 36 | #ifdef CONFIG_NET | ||
| 37 | .net_ns = &init_net, | ||
| 38 | #endif | ||
| 39 | }; | ||
| 28 | 40 | ||
| 29 | static inline struct nsproxy *create_nsproxy(void) | 41 | static inline struct nsproxy *create_nsproxy(void) |
| 30 | { | 42 | { |
