userns: Allow unprivilged mounts of proc and sysfs
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 27 Jul 2012 12:56:48 +0000 (05:56 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Nov 2012 12:19:18 +0000 (04:19 -0800)
- 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>
fs/proc/root.c
fs/sysfs/mount.c

index f2f251158d35526c3d4fe1d830bc2a316960ba8b..c6e9fac26bace4e9b63bd57dce624589dc67dfd7 100644 (file)
@@ -145,6 +145,7 @@ static struct file_system_type proc_fs_type = {
        .name           = "proc",
        .mount          = proc_mount,
        .kill_sb        = proc_kill_sb,
+       .fs_flags       = FS_USERNS_MOUNT,
 };
 
 void __init proc_root_init(void)
index 71eb7e2539274a5cacd1fe61ba0bca46db8381b4..db940a9be0458216b6b54df956d89a20b32f16ee 100644 (file)
@@ -149,6 +149,7 @@ static struct file_system_type sysfs_fs_type = {
        .name           = "sysfs",
        .mount          = sysfs_mount,
        .kill_sb        = sysfs_kill_sb,
+       .fs_flags       = FS_USERNS_MOUNT,
 };
 
 int __init sysfs_init(void)
This page took 0.035246 seconds and 5 git commands to generate.