All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] userns: enable tmpfs support for user namespace.
@ 2012-09-19  8:16 Gao feng
       [not found] ` <1348042588-9031-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2012-09-19  8:16 UTC (permalink / raw)
  To: ebiederm-aS9lmoZGLiVWk0Htik3J/w
  Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

mounting tmpfs in user namespace does no harm to the host.
so enable tmpfs support for the user namespace.

Signed-off-by: Gao feng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 mm/shmem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/shmem.c b/mm/shmem.c
index d4e184e..ef97dc3 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2801,6 +2801,7 @@ static struct file_system_type shmem_fs_type = {
 	.name		= "tmpfs",
 	.mount		= shmem_mount,
 	.kill_sb	= kill_litter_super,
+	.fs_flags	= FS_USERNS_MOUNT,
 };
 
 int __init shmem_init(void)
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-24  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19  8:16 [PATCH] userns: enable tmpfs support for user namespace Gao feng
     [not found] ` <1348042588-9031-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-09-19 10:40   ` Eric W. Biederman
     [not found]     ` <87wqzq8fe3.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-09-20  0:39       ` Gao feng
     [not found]         ` <505A65AB.4000703-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-09-20  0:59           ` Eric W. Biederman
     [not found]             ` <874nmt5x1r.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-10-24  7:49               ` Gao feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.