* [PATCH] userns: don't leak root user
@ 2007-08-23 9:22 Alexey Dobriyan
2007-08-23 14:47 ` Cedric Le Goater
2007-08-23 16:46 ` Serge E. Hallyn
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2007-08-23 9:22 UTC (permalink / raw)
To: akpm; +Cc: devel, linux-kernel, serue
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---
kernel/user_namespace.c | 1 +
1 file changed, 1 insertion(+)
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref)
struct user_namespace *ns;
ns = container_of(kref, struct user_namespace, kref);
+ free_uid(ns->root_user);
kfree(ns);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] userns: don't leak root user
2007-08-23 9:22 [PATCH] userns: don't leak root user Alexey Dobriyan
@ 2007-08-23 14:47 ` Cedric Le Goater
2007-08-23 16:46 ` Serge E. Hallyn
1 sibling, 0 replies; 3+ messages in thread
From: Cedric Le Goater @ 2007-08-23 14:47 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, devel, linux-kernel, serue
Alexey Dobriyan wrote:
> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
> ---
>
> kernel/user_namespace.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/kernel/user_namespace.c
> +++ b/kernel/user_namespace.c
> @@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref)
> struct user_namespace *ns;
>
> ns = container_of(kref, struct user_namespace, kref);
> + free_uid(ns->root_user);
> kfree(ns);
> }
Indeed ...
Thanks !
C.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] userns: don't leak root user
2007-08-23 9:22 [PATCH] userns: don't leak root user Alexey Dobriyan
2007-08-23 14:47 ` Cedric Le Goater
@ 2007-08-23 16:46 ` Serge E. Hallyn
1 sibling, 0 replies; 3+ messages in thread
From: Serge E. Hallyn @ 2007-08-23 16:46 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, devel, linux-kernel, serue, Cedric Le Goater
Quoting Alexey Dobriyan (adobriyan@sw.ru):
> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Thanks, Alexey.
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
> ---
>
> kernel/user_namespace.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/kernel/user_namespace.c
> +++ b/kernel/user_namespace.c
> @@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref)
> struct user_namespace *ns;
>
> ns = container_of(kref, struct user_namespace, kref);
> + free_uid(ns->root_user);
> kfree(ns);
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-23 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 9:22 [PATCH] userns: don't leak root user Alexey Dobriyan
2007-08-23 14:47 ` Cedric Le Goater
2007-08-23 16:46 ` 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.