aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-07-27 08:56:48 -0400
committerEric W. Biederman <ebiederm@xmission.com>2012-11-20 07:19:18 -0500
commit4f326c0064b20b78b8041f4d2f6fe188a1129f18 (patch)
tree867ddce014cb780460130ecf5924069d588fa9c9 /fs/proc
parentc450f371d48557e3e0fa510a4af27b92f0d8c4cc (diff)
userns: Allow unprivilged mounts of proc and sysfs
- The context in which proc and sysfs are mounted have no effect on the the uid/gid of their files so no conversion is needed except allowing the mount. 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/root.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index f2f251158d35..c6e9fac26bac 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -145,6 +145,7 @@ static struct file_system_type proc_fs_type = {
145 .name = "proc", 145 .name = "proc",
146 .mount = proc_mount, 146 .mount = proc_mount,
147 .kill_sb = proc_kill_sb, 147 .kill_sb = proc_kill_sb,
148 .fs_flags = FS_USERNS_MOUNT,
148}; 149};
149 150
150void __init proc_root_init(void) 151void __init proc_root_init(void)