]> 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)
commit66d1239e3e23d9a57e8c57ee3f76d0cf06bc0f27
tree1b87793fb6b27d5c298b02809800180b8ba0b449
parent5268f0d73166e507a728cd118865d2fb7cb892f7
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