Commit f31389d5 authored by Eric W. Biederman's avatar Eric W. Biederman

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 6c1ee033
...@@ -278,8 +278,8 @@ linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat) ...@@ -278,8 +278,8 @@ linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat)
tmp.st_dev = lstat->dev; tmp.st_dev = lstat->dev;
tmp.st_mode = lstat->mode; tmp.st_mode = lstat->mode;
tmp.st_nlink = lstat->nlink; tmp.st_nlink = lstat->nlink;
tmp.st_uid = lstat->uid; tmp.st_uid = from_kuid_munged(current_user_ns(), lstat->uid);
tmp.st_gid = lstat->gid; tmp.st_gid = from_kgid_munged(current_user_ns(), lstat->gid);
tmp.st_rdev = lstat->rdev; tmp.st_rdev = lstat->rdev;
tmp.st_ldev = lstat->rdev; tmp.st_ldev = lstat->rdev;
tmp.st_size = lstat->size; tmp.st_size = lstat->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment