userns: Disassociate user_struct from the user_namespace.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 17 Nov 2011 07:20:58 +0000 (23:20 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Apr 2012 00:11:46 +0000 (17:11 -0700)
commit7b44ab978b77a91b327058a0f4db7e6fcdb90b92
tree632c872f0b88d001f1bddce2c0aacd77bf062454
parent5673a94c14574d7c6495c320c6b0e480673d54bd
userns: Disassociate user_struct from the user_namespace.

Modify alloc_uid to take a kuid and make the user hash table global.
Stop holding a reference to the user namespace in struct user_struct.

This simplifies the code and makes the per user accounting not
care about which user namespace a uid happens to appear in.

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