Lines Matching refs:idmap

97 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode)  in may_write_xattr()  argument
103 if (HAS_UNMAPPED_ID(idmap, inode)) in may_write_xattr()
113 xattr_permission(struct mnt_idmap *idmap, struct inode *inode, in xattr_permission() argument
119 ret = may_write_xattr(idmap, inode); in xattr_permission()
151 !inode_owner_or_capable(idmap, inode)) in xattr_permission()
155 return inode_permission(idmap, inode, mask); in xattr_permission()
184 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr() argument
200 return handler->set(handler, idmap, dentry, inode, name, value, in __vfs_setxattr()
222 int __vfs_setxattr_noperm(struct mnt_idmap *idmap, in __vfs_setxattr_noperm() argument
234 error = __vfs_setxattr(idmap, dentry, inode, name, value, in __vfs_setxattr_noperm()
275 __vfs_setxattr_locked(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr_locked() argument
282 error = xattr_permission(idmap, inode, name, MAY_WRITE); in __vfs_setxattr_locked()
286 error = security_inode_setxattr(idmap, dentry, name, value, size, in __vfs_setxattr_locked()
295 error = __vfs_setxattr_noperm(idmap, dentry, name, value, in __vfs_setxattr_locked()
304 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_setxattr() argument
313 error = cap_convert_nscap(idmap, dentry, &value, size); in vfs_setxattr()
321 error = __vfs_setxattr_locked(idmap, dentry, name, value, size, in vfs_setxattr()
338 xattr_getsecurity(struct mnt_idmap *idmap, struct inode *inode, in xattr_getsecurity() argument
345 len = security_inode_getsecurity(idmap, inode, name, in xattr_getsecurity()
350 len = security_inode_getsecurity(idmap, inode, name, &buffer, in xattr_getsecurity()
375 vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr_alloc() argument
384 error = xattr_permission(idmap, inode, name, MAY_READ); in vfs_getxattr_alloc()
428 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr() argument
434 error = xattr_permission(idmap, inode, name, MAY_READ); in vfs_getxattr()
445 int ret = xattr_getsecurity(idmap, inode, suffix, value, in vfs_getxattr()
504 __vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_removexattr() argument
518 return handler->set(handler, idmap, dentry, inode, name, NULL, 0, in __vfs_removexattr()
534 __vfs_removexattr_locked(struct mnt_idmap *idmap, in __vfs_removexattr_locked() argument
541 error = xattr_permission(idmap, inode, name, MAY_WRITE); in __vfs_removexattr_locked()
545 error = security_inode_removexattr(idmap, dentry, name); in __vfs_removexattr_locked()
553 error = __vfs_removexattr(idmap, dentry, name); in __vfs_removexattr_locked()
566 vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_removexattr() argument
575 error = __vfs_removexattr_locked(idmap, dentry, in vfs_removexattr()
629 static int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in do_setxattr() argument
633 return do_set_acl(idmap, dentry, ctx->kname->name, in do_setxattr()
636 return vfs_setxattr(idmap, dentry, ctx->kname->name, in do_setxattr()
769 do_getxattr(struct mnt_idmap *idmap, struct dentry *d, in do_getxattr() argument
785 error = do_get_acl(idmap, d, kname, kvalue, ctx->size); in do_getxattr()
787 error = vfs_getxattr(idmap, d, kname, kvalue, ctx->size); in do_getxattr()
1019 removexattr(struct mnt_idmap *idmap, struct dentry *d, const char *name) in removexattr() argument
1022 return vfs_remove_acl(idmap, d, name); in removexattr()
1023 return vfs_removexattr(idmap, d, name); in removexattr()