userns: Convert ipc to use kuid and kgid where appropriate
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 8 Feb 2012 00:54:11 +0000 (16:54 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 7 Sep 2012 05:17:20 +0000 (22:17 -0700)
commit1efdb69b0bb41dec8ee3e2cac0a0f167837d0919
treea9eb64c44d773e7b4fead20a7bfa9a354abf3bfa
parent9582d90196aa879e6acf866f02a1adead08707b5
userns: Convert ipc to use kuid and kgid where appropriate

- Store the ipc owner and creator with a kuid
- Store the ipc group and the crators group with a kgid.
- Add error handling to ipc_update_perms, allowing it to
  fail if the uids and gids can not be converted to kuids
  or kgids.
- Modify the proc files to display the ipc creator and
  owner in the user namespace of the opener of the proc file.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/ipc.h
init/Kconfig
ipc/msg.c
ipc/sem.c
ipc/shm.c
ipc/util.c
ipc/util.h