diff options
Diffstat (limited to 'fs/xattr.c')
-rw-r--r-- | fs/xattr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 1cc1420eccce..80a6460b620c 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -113,8 +113,6 @@ static int xattr_permission(struct mnt_idmap *idmap, struct inode *inode, const char *name, int mask) { - struct user_namespace *mnt_userns = mnt_idmap_owner(idmap); - if (mask & MAY_WRITE) { int ret; @@ -150,7 +148,7 @@ xattr_permission(struct mnt_idmap *idmap, struct inode *inode, return (mask & MAY_WRITE) ? -EPERM : -ENODATA; if (S_ISDIR(inode->i_mode) && (inode->i_mode & S_ISVTX) && (mask & MAY_WRITE) && - !inode_owner_or_capable(mnt_userns, inode)) + !inode_owner_or_capable(idmap, inode)) return -EPERM; } |