userns: Add an explicit reference to the parent user namespace
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 17 Nov 2011 05:59:43 +0000 (21:59 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Apr 2012 23:55:52 +0000 (16:55 -0700)
commitaeb3ae9da9b50a386b22af786d19b623e8d9f0fa
tree3db9772ea99c931914bec7ded51f896f1d2e24ec
parent0093ccb68f3753c0ba4d74c89d7e0f444b8d6123
userns: Add an explicit reference to the parent user namespace

I am about to remove the struct user_namespace reference from struct user_struct.
So keep an explicit track of the parent user namespace.

Take advantage of this new reference and replace instances of user_ns->creator->user_ns
with user_ns->parent.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/user_namespace.h
kernel/user_namespace.c
security/commoncap.c