]> git.baikalelectronics.ru Git - kernel.git/commit
userns: Allow the userns root to mount ramfs.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 26 Jan 2013 00:37:44 +0000 (16:37 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 27 Jan 2013 06:22:38 +0000 (22:22 -0800)
commit2a906190b57a9b2afee8ad980f7d8964c4c60e06
tree1b87793fb6b27d5c298b02809800180b8ba0b449
parent3b6cf335abbc3f859df07b8b482057875089576b
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>
fs/ramfs/inode.c