userns: Allow the userns root to mount tmpfs.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 26 Jan 2013 00:32:10 +0000 (16:32 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 27 Jan 2013 06:23:05 +0000 (22:23 -0800)
commit2b8576cb09a7b1b581c253554bf9e05d3adce7d6
treeacba53f712c463a2bba3416145e705876a8d6c90
parentb3c6761d9b5cc82deea7416d11c2118f6380e99c
userns: Allow the userns root to mount tmpfs.

There is no backing store to tmpfs and file creation rules are the
same as for any other filesystem so it is semantically safe to allow
unprivileged users to mount it.  ramfs is safe for the same reasons so
allow either flavor of tmpfs to be mounted by a user namespace root
user.

The memory control group successfully limits how much memory tmpfs can
consume on any system that cares about a user namespace root using
tmpfs to exhaust memory the memory control group can be deployed.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
mm/shmem.c
This page took 0.025104 seconds and 5 git commands to generate.