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

From: gaofeng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>

Since the memory used by tmpfs is under control of
memory cgroup. and the files under the tmpfs will not
be leak to other tmpfs.

So mounting tmpfs in user namespace does no harm to the
host,we can allow tmpfs to be mounted in user namespace.

Signed-off-by: gaofeng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 mm/shmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/shmem.c b/mm/shmem.c
index 5dd56f6..8eff60a 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2766,6 +2766,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.11.7

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

end of thread, other threads:[~2013-01-25  8:21 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 10:25 [PATCH RESEND] userns: enable tmpfs support for user namespace Gao feng
     [not found] ` <1358331945-4106-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2013-01-16 14:35   ` Serge Hallyn
2013-01-17  1:07     ` Gao feng
     [not found]       ` <50F74EC6.60004-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2013-01-17 10:15         ` Eric W. Biederman
2013-01-17 17:14         ` Serge Hallyn
2013-01-17 23:34           ` Eric W. Biederman
     [not found]             ` <87fw1zbd03.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-18  4:24               ` Serge Hallyn
2013-01-18  5:29                 ` Eric W. Biederman
     [not found]                   ` <87vcavys6k.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-18  5:33                     ` Glauber Costa
     [not found]                       ` <50F8DEBF.1020701-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-01-18  6:04                         ` Eric W. Biederman
     [not found]                           ` <87ip6vyqkf.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-18  6:10                             ` Glauber Costa
     [not found]                               ` <50F8E73B.7000903-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-01-18  7:01                                 ` Constraining the memory used by an unprivilged mount of tmpfs Eric W. Biederman
     [not found]                                   ` <87ip6vug8p.fsf_-_-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-18 18:42                                     ` Glauber Costa
     [not found]                                       ` <50F99787.3090708-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-01-18 19:48                                         ` Serge Hallyn
2013-01-18 19:52                                           ` Glauber Costa
     [not found]                                             ` <50F9A7FD.6030507-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-01-18 20:06                                               ` Serge Hallyn
2013-01-18 20:18                                               ` Eric W. Biederman
     [not found]                                                 ` <87hament1w.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-18 20:32                                                   ` Serge Hallyn
2013-01-18 22:38                                                   ` Glauber Costa
     [not found]                                                     ` <50F9CED4.2070109-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-01-25  8:12                                                       ` Eric W. Biederman
     [not found]                                                         ` <87zjzxllzz.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2013-01-25  8:21                                                           ` Lord Glauber Costa of Sealand
2013-01-20 19:27                                               ` Serge E. Hallyn
2013-01-21  2:39                         ` [PATCH RESEND] userns: enable tmpfs support for user namespace Gao feng
     [not found]                           ` <50FCAA62.8070804-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2013-01-21  5:08                             ` Glauber Costa
2013-01-20 19:24                     ` Serge E. Hallyn

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.