Lines Matching refs:idmap
86 * @idmap: idmap of the mount the inode was found from
98 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode)
104 if (HAS_UNMAPPED_ID(idmap, inode))
114 xattr_permission(struct mnt_idmap *idmap, struct inode *inode,
120 ret = may_write_xattr(idmap, inode);
152 !inode_owner_or_capable(idmap, inode))
156 return inode_permission(idmap, inode, mask);
185 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
201 return handler->set(handler, idmap, dentry, inode, name, value,
210 * @idmap: idmap of the mount the inode was found from
223 int __vfs_setxattr_noperm(struct mnt_idmap *idmap,
235 error = __vfs_setxattr(idmap, dentry, inode, name, value,
266 * @idmap: idmap of the mount of the target inode
276 __vfs_setxattr_locked(struct mnt_idmap *idmap, struct dentry *dentry,
283 error = xattr_permission(idmap, inode, name, MAY_WRITE);
287 error = security_inode_setxattr(idmap, dentry, name, value, size,
296 error = __vfs_setxattr_noperm(idmap, dentry, name, value,
305 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
314 error = cap_convert_nscap(idmap, dentry, &value, size);
322 error = __vfs_setxattr_locked(idmap, dentry, name, value, size,
339 xattr_getsecurity(struct mnt_idmap *idmap, struct inode *inode,
346 len = security_inode_getsecurity(idmap, inode, name,
351 len = security_inode_getsecurity(idmap, inode, name, &buffer,
376 vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry,
385 error = xattr_permission(idmap, inode, name, MAY_READ);
429 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry,
435 error = xattr_permission(idmap, inode, name, MAY_READ);
446 int ret = xattr_getsecurity(idmap, inode, suffix, value,
505 __vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
519 return handler->set(handler, idmap, dentry, inode, name, NULL, 0,
528 * @idmap: idmap of the mount of the target inode
535 __vfs_removexattr_locked(struct mnt_idmap *idmap,
542 error = xattr_permission(idmap, inode, name, MAY_WRITE);
546 error = security_inode_removexattr(idmap, dentry, name);
554 error = __vfs_removexattr(idmap, dentry, name);
567 vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry,
576 error = __vfs_removexattr_locked(idmap, dentry,
623 int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
627 return do_set_acl(idmap, dentry, ctx->kname->name,
630 return vfs_setxattr(idmap, dentry, ctx->kname->name,
635 setxattr(struct mnt_idmap *idmap, struct dentry *d,
653 error = do_setxattr(idmap, d, &ctx);
722 do_getxattr(struct mnt_idmap *idmap, struct dentry *d,
737 error = do_get_acl(idmap, d, kname, ctx->kvalue, ctx->size);
739 error = vfs_getxattr(idmap, d, kname, ctx->kvalue, ctx->size);
753 getxattr(struct mnt_idmap *idmap, struct dentry *d,
772 error = do_getxattr(idmap, d, &ctx);
903 removexattr(struct mnt_idmap *idmap, struct dentry *d,
916 return vfs_remove_acl(idmap, d, kname);
918 return vfs_removexattr(idmap, d, kname);