Lines Matching refs:idmap

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