userns: Convert stat to return values mapped from kuids and kgids
[sfrench/cifs-2.6.git] / arch / parisc / hpux / fs.c
index 0dc8543acb4fc31e9e13c3ba0c124096b6471648..c71eb6c7989707d0fbbc609a8e27ec5261204b25 100644 (file)
@@ -159,8 +159,8 @@ static int cp_hpux_stat(struct kstat *stat, struct hpux_stat64 __user *statbuf)
        tmp.st_ino = stat->ino;
        tmp.st_mode = stat->mode;
        tmp.st_nlink = stat->nlink;
-       tmp.st_uid = stat->uid;
-       tmp.st_gid = stat->gid;
+       tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
+       tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
        tmp.st_rdev = new_encode_dev(stat->rdev);
        tmp.st_size = stat->size;
        tmp.st_atime = stat->atime.tv_sec;