* [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
* Re: [PATCH] userns: enable tmpfs support for user namespace.
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Eric W. Biederman @ 2012-09-19 10:40 UTC (permalink / raw)
To: Gao feng; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Gao feng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> writes:
> mounting tmpfs in user namespace does no harm to the host.
> so enable tmpfs support for the user namespace.
I think this allows escaping from memory resource limits.
Eric
> 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)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] userns: enable tmpfs support for user namespace.
[not found] ` <87wqzq8fe3.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
@ 2012-09-20 0:39 ` Gao feng
[not found] ` <505A65AB.4000703-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2012-09-20 0:39 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
于 2012年09月19日 18:40, Eric W. Biederman 写道:
> Gao feng <gaofeng@cn.fujitsu.com> writes:
>
>> mounting tmpfs in user namespace does no harm to the host.
>> so enable tmpfs support for the user namespace.
>
> I think this allows escaping from memory resource limits.
>
Got it,it makes sense,sorry for the noise.
thanks!
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] userns: enable tmpfs support for user namespace.
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Eric W. Biederman @ 2012-09-20 0:59 UTC (permalink / raw)
To: Gao feng; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Gao feng <gaofeng@cn.fujitsu.com> writes:
> 于 2012年09月19日 18:40, Eric W. Biederman 写道:
>> Gao feng <gaofeng@cn.fujitsu.com> writes:
>>
>>> mounting tmpfs in user namespace does no harm to the host.
>>> so enable tmpfs support for the user namespace.
>>
>> I think this allows escaping from memory resource limits.
>>
>
> Got it,it makes sense,sorry for the noise.
No noise problem.
This is a problem that ultimately needs solving.
I putter at that end of my tree from time to time, because those are the
more interesting problems.
Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] userns: enable tmpfs support for user namespace.
[not found] ` <874nmt5x1r.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
@ 2012-10-24 7:49 ` Gao feng
0 siblings, 0 replies; 5+ messages in thread
From: Gao feng @ 2012-10-24 7:49 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
于 2012年09月20日 08:59, Eric W. Biederman 写道:
> Gao feng <gaofeng@cn.fujitsu.com> writes:
>
>> 于 2012年09月19日 18:40, Eric W. Biederman 写道:
>>> Gao feng <gaofeng@cn.fujitsu.com> writes:
>>>
>>>> mounting tmpfs in user namespace does no harm to the host.
>>>> so enable tmpfs support for the user namespace.
>>>
>>> I think this allows escaping from memory resource limits.
>>>
>>
>> Got it,it makes sense,sorry for the noise.
>
> No noise problem.
>
> This is a problem that ultimately needs solving.
>
> I putter at that end of my tree from time to time, because those are the
> more interesting problems.
>
Hi Eric
I test the tmpfs with mem cgroup,and found the memory cgroup can limit
how many memory the tasks used through tmpfs.
So I think this problem has already been solved.
Or maybe I misunderstand what you said?
Thanks help from Glauber.
Gao
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
^ permalink raw reply [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.