mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue