userns: Convert stat to return values mapped from kuids and kgids
[linux-block.git] / arch / arm / kernel / sys_oabi-compat.c
index af0aaebf4de62e16e70fcfcad8ccafece2879217..3e94811690ce1c510beb49e2bf15edea9e0a4fa7 100644 (file)
@@ -124,8 +124,8 @@ static long cp_oldabi_stat64(struct kstat *stat,
        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 = huge_encode_dev(stat->rdev);
        tmp.st_size = stat->size;
        tmp.st_blocks = stat->blocks;