mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
userns: Allow the userns root to mount ramfs.
There is no backing store to ramfs and file creation rules are the same as for any other filesystem so it is semantically safe to allow unprivileged users to mount it. The memory control group successfully limits how much memory ramfs can consume on any system that cares about a user namespace root using ramfs to exhaust memory the memory control group can be deployed. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
ec2aa8e8dd
commit
b3c6761d9b
@ -260,6 +260,7 @@ static struct file_system_type ramfs_fs_type = {
|
||||
.name = "ramfs",
|
||||
.mount = ramfs_mount,
|
||||
.kill_sb = ramfs_kill_sb,
|
||||
.fs_flags = FS_USERNS_MOUNT,
|
||||
};
|
||||
static struct file_system_type rootfs_fs_type = {
|
||||
.name = "rootfs",
|
||||
|
Loading…
Reference in New Issue
Block a user