userns: Convert setting and getting uid and gid system calls to use kuid and kgid
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 8 Feb 2012 02:51:01 +0000 (18:51 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 3 May 2012 10:28:41 +0000 (03:28 -0700)
commita29c33f4e506e1dae7e0985b6328046535becbf8
tree529720b8aefaf115b4be197e5d7628657cf5b4bc
parent18815a18085364d8514c0d0c4c986776cb74272c
userns: Convert setting and getting uid and gid system calls to use kuid and kgid

Convert setregid, setgid, setreuid, setuid,
setresuid, getresuid, setresgid, getresgid, setfsuid, setfsgid,
getuid, geteuid, getgid, getegid,
waitpid, waitid, wait4.

Convert userspace uids and gids into kuids and kgids before
being placed on struct cred.  Convert struct cred kuids and
kgids into userspace uids and gids when returning them.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/exit.c
kernel/sys.c
kernel/timer.c
kernel/uid16.c