summaryrefslogtreecommitdiffstats
path: root/include/linux/stat.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-09 09:10:30 -0800
committerEric W. Biederman <ebiederm@xmission.com>2012-05-15 14:08:35 -0700
commita7c1938e22c02b008655524c766d185ae99d9d53 (patch)
treef6b862a5d187908007614e5537f4cd1e31a40df4 /include/linux/stat.h
parent52137abe1820196d956bfd51edebc571b3427deb (diff)
downloadtalos-op-linux-a7c1938e22c02b008655524c766d185ae99d9d53.tar.gz
talos-op-linux-a7c1938e22c02b008655524c766d185ae99d9d53.zip
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>
Diffstat (limited to 'include/linux/stat.h')
-rw-r--r--include/linux/stat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/stat.h b/include/linux/stat.h
index 611c398dab72..46132409a3f7 100644
--- a/include/linux/stat.h
+++ b/include/linux/stat.h
@@ -58,14 +58,15 @@
#include <linux/types.h>
#include <linux/time.h>
+#include <linux/uidgid.h>
struct kstat {
u64 ino;
dev_t dev;
umode_t mode;
unsigned int nlink;
- uid_t uid;
- gid_t gid;
+ kuid_t uid;
+ kgid_t gid;
dev_t rdev;
loff_t size;
struct timespec atime;
OpenPOWER on IntegriCloud