Commit 99db67bc authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

userns: don't leak root user

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Acked-by: default avatarCedric Le Goater <clg@fr.ibm.com>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 59845b1f
...@@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref) ...@@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref)
struct user_namespace *ns; struct user_namespace *ns;
ns = container_of(kref, struct user_namespace, kref); ns = container_of(kref, struct user_namespace, kref);
free_uid(ns->root_user);
kfree(ns); kfree(ns);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment