author: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-21 14:19:31 +0100
committer: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-24 14:27:17 +0100
commit: ba73d98745be1c10dc3cce68e8d7b95012d07d05
parent: 0d56a4518d5eaf595a24ab2202e171330bb2ed72
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/xattr.c b/fs/xattr.c
index 79c439d31eaa..b3444e06cded 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -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;
}