aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-07-26 09:24:06 -0400
committerEric W. Biederman <ebiederm@xmission.com>2012-11-20 07:18:13 -0500
commitcde1975bc242f3e1072bde623ef378e547b73f91 (patch)
tree2c40083144c71d2aa2be39ed65f610570261f647 /fs/proc
parent4c44aaafa8108f584831850ab48a975e971db2de (diff)
userns: Implent proc namespace operations
This allows entering a user namespace, and the ability to store a reference to a user namespace with a bind mount. Addition of missing userns_ns_put in userns_install from Gao feng <gaofeng@cn.fujitsu.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/namespaces.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c
index 2a17fd9ae6a9..030250c27d70 100644
--- a/fs/proc/namespaces.c
+++ b/fs/proc/namespaces.c
@@ -11,6 +11,7 @@
11#include <net/net_namespace.h> 11#include <net/net_namespace.h>
12#include <linux/ipc_namespace.h> 12#include <linux/ipc_namespace.h>
13#include <linux/pid_namespace.h> 13#include <linux/pid_namespace.h>
14#include <linux/user_namespace.h>
14#include "internal.h" 15#include "internal.h"
15 16
16 17
@@ -27,6 +28,9 @@ static const struct proc_ns_operations *ns_entries[] = {
27#ifdef CONFIG_PID_NS 28#ifdef CONFIG_PID_NS
28 &pidns_operations, 29 &pidns_operations,
29#endif 30#endif
31#ifdef CONFIG_USER_NS
32 &userns_operations,
33#endif
30 &mntns_operations, 34 &mntns_operations,
31}; 35};
32 36