diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-11 12:07:24 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-21 03:13:29 -0700 |
commit | f31389d50817c9a99c3ea81fbb2e3789e303cfe8 (patch) | |
tree | 767f59175ccb6307acd28ad61178bc4690bdef4f /arch/alpha/kernel/osf_sys.c | |
parent | 6c1ee033591ada69805a4a10108f28bbc0d67281 (diff) | |
download | op-kernel-dev-f31389d50817c9a99c3ea81fbb2e3789e303cfe8.zip op-kernel-dev-f31389d50817c9a99c3ea81fbb2e3789e303cfe8.tar.gz |
userns: On alpha modify linux_to_osf_stat to use convert from kuids and kgids
Silencing build errors and potentially allowing people to use osf
system calls in from processes running in a non-default user namespace.
It seems this stat call was missed in my first round of converting the
stat system calls, bother.
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/alpha/kernel/osf_sys.c')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 98a1036..32c5f9d 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -278,8 +278,8 @@ linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat) tmp.st_dev = lstat->dev; tmp.st_mode = lstat->mode; tmp.st_nlink = lstat->nlink; - tmp.st_uid = lstat->uid; - tmp.st_gid = lstat->gid; + tmp.st_uid = from_kuid_munged(current_user_ns(), lstat->uid); + tmp.st_gid = from_kgid_munged(current_user_ns(), lstat->gid); tmp.st_rdev = lstat->rdev; tmp.st_ldev = lstat->rdev; tmp.st_size = lstat->size; |