diff options
| author | Eric W. Biederman <[email protected]> | 2012-07-27 12:56:48 +0000 |
|---|---|---|
| committer | Eric W. Biederman <[email protected]> | 2012-11-20 12:19:18 +0000 |
| commit | 4f326c0064b20b78b8041f4d2f6fe188a1129f18 (patch) | |
| tree | 867ddce014cb780460130ecf5924069d588fa9c9 /fs/proc/root.c | |
| parent | userns: For /proc/self/{uid,gid}_map derive the lower userns from the struct ... (diff) | |
| download | kernel-4f326c0064b20b78b8041f4d2f6fe188a1129f18.tar.gz kernel-4f326c0064b20b78b8041f4d2f6fe188a1129f18.zip | |
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 <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
| -rw-r--r-- | fs/proc/root.c | 1 |
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 = { .name = "proc", .mount = proc_mount, .kill_sb = proc_kill_sb, + .fs_flags = FS_USERNS_MOUNT, }; void __init proc_root_init(void) |
