userns: Convert stat to return values mapped from kuids and kgids
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 9 Feb 2012 17:10:30 +0000 (09:10 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 15 May 2012 21:08:35 +0000 (14:08 -0700)
commita7c1938e22c02b008655524c766d185ae99d9d53
treef6b862a5d187908007614e5537f4cd1e31a40df4
parent52137abe1820196d956bfd51edebc571b3427deb
userns: Convert stat to return values mapped from kuids and kgids

- Store uids and gids with kuid_t and kgid_t in struct kstat
- Convert uid and gids to userspace usable values with
  from_kuid and from_kgid

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/arm/kernel/sys_oabi-compat.c
arch/parisc/hpux/fs.c
arch/s390/kernel/compat_linux.c
arch/sparc/kernel/sys_sparc32.c
arch/x86/ia32/sys_ia32.c
fs/compat.c
fs/stat.c
include/linux/stat.h