aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-08-30 23:56:34 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-31 01:42:23 -0700
commit99db67bc04af0f2e8cb710ac92aaeb9af135a7c6 (patch)
treeccecbdec74517220854685ab2517ff15208f13c6 /kernel
parent59845b1ffd9121e5ef474ea5f27405fd7a83c85b (diff)
downloadkernel_samsung_tuna-99db67bc04af0f2e8cb710ac92aaeb9af135a7c6.zip
kernel_samsung_tuna-99db67bc04af0f2e8cb710ac92aaeb9af135a7c6.tar.gz
kernel_samsung_tuna-99db67bc04af0f2e8cb710ac92aaeb9af135a7c6.tar.bz2
userns: don't leak root user
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Acked-by: Cedric Le Goater <clg@fr.ibm.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/user_namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index d055d98..85af942 100644
--- 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);
}