cred: Refcount the user_ns pointed to by the cred.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 17 Nov 2011 05:52:53 +0000 (21:52 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Apr 2012 23:55:52 +0000 (16:55 -0700)
commit0093ccb68f3753c0ba4d74c89d7e0f444b8d6123
treea6fc0ea2a6dfc338fa8fc7126005f40109ef8dce
parentc4a4d603796c727b9555867571f89483be9c565e
cred: Refcount the user_ns pointed to by the cred.

struct user_struct will shortly loose it's user_ns reference
so make the cred user_ns reference a proper reference complete
with reference counting.

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