]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/xattr.c
namei: handle idmapped mounts in may_*() helpers
[people/ms/linux.git] / fs / xattr.c
index 79c439d31eaa6a5e7867a192cc38893ae496bed8..b3444e06cded4dfadd6501b96ce2ed1c61748e4e 100644 (file)
@@ -98,7 +98,7 @@ xattr_permission(struct user_namespace *mnt_userns, struct inode *inode,
                 * to be writen back improperly if their true value is
                 * unknown to the vfs.
                 */
-               if (HAS_UNMAPPED_ID(inode))
+               if (HAS_UNMAPPED_ID(mnt_userns, inode))
                        return -EPERM;
        }