diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-07-27 08:56:48 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-11-20 07:19:18 -0500 |
commit | 4f326c0064b20b78b8041f4d2f6fe188a1129f18 (patch) | |
tree | 867ddce014cb780460130ecf5924069d588fa9c9 /fs/sysfs | |
parent | c450f371d48557e3e0fa510a4af27b92f0d8c4cc (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/sysfs')
-rw-r--r-- | fs/sysfs/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 71eb7e253927..db940a9be045 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c | |||
@@ -149,6 +149,7 @@ static struct file_system_type sysfs_fs_type = { | |||
149 | .name = "sysfs", | 149 | .name = "sysfs", |
150 | .mount = sysfs_mount, | 150 | .mount = sysfs_mount, |
151 | .kill_sb = sysfs_kill_sb, | 151 | .kill_sb = sysfs_kill_sb, |
152 | .fs_flags = FS_USERNS_MOUNT, | ||
152 | }; | 153 | }; |
153 | 154 | ||
154 | int __init sysfs_init(void) | 155 | int __init sysfs_init(void) |