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>
This commit is contained in:
parent
59845b1ffd
commit
99db67bc04
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue