userns: On alpha modify linux_to_osf_stat to use convert from kuids and kgids
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / alpha / kernel / osf_sys.c
index 98a1036..32c5f9d 100644 (file)
@@ -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;