aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/proc_fs.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2010-03-07 21:17:03 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-11-19 08:59:14 -0500
commit57e8391d327609cbf12d843259c968b9e5c1838f (patch)
tree53a5750360300da641fea08890bb531789ffba91 /include/linux/proc_fs.h
parent225778d68d98e7cfe2579f8d8b2d7b76f8541b8b (diff)
pidns: Add setns support
- Pid namespaces are designed to be inescapable so verify that the passed in pid namespace is a child of the currently active pid namespace or the currently active pid namespace itself. Allowing the currently active pid namespace is important so the effects of an earlier setns can be cancelled. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r--include/linux/proc_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 3fd2e871ff1b..acaafcd40aa5 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -251,6 +251,7 @@ struct proc_ns_operations {
251extern const struct proc_ns_operations netns_operations; 251extern const struct proc_ns_operations netns_operations;
252extern const struct proc_ns_operations utsns_operations; 252extern const struct proc_ns_operations utsns_operations;
253extern const struct proc_ns_operations ipcns_operations; 253extern const struct proc_ns_operations ipcns_operations;
254extern const struct proc_ns_operations pidns_operations;
254 255
255union proc_op { 256union proc_op {
256 int (*proc_get_link)(struct dentry *, struct path *); 257 int (*proc_get_link)(struct dentry *, struct path *);