Lines Matching refs:idmap
114 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl() argument
157 acl = inode->i_op->get_acl(idmap, dentry, type); in __get_acl()
375 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() argument
390 vfsuid = i_uid_into_vfsuid(idmap, inode); in posix_acl_permission()
395 vfsuid = make_vfsuid(idmap, fs_userns, in posix_acl_permission()
401 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
409 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
605 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() argument
627 ret = inode->i_op->set_acl(idmap, dentry, acl, ACL_TYPE_ACCESS); in posix_acl_chmod()
706 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() argument
718 if (!in_group_or_capable(idmap, inode, in posix_acl_update_mode()
719 i_gid_into_vfsgid(idmap, inode))) in posix_acl_update_mode()
887 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() argument
917 vfsuid = make_vfsuid(idmap, fs_userns, acl_e->e_uid); in vfs_posix_acl_to_xattr()
922 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
935 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() argument
947 if (!inode_owner_or_capable(idmap, inode)) in set_posix_acl()
955 return inode->i_op->set_acl(idmap, dentry, acl, type); in set_posix_acl()
1016 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() argument
1023 error = posix_acl_update_mode(idmap, inode, in simple_set_acl()
1055 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() argument
1064 acl_e->e_uid = from_vfsuid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1068 acl_e->e_gid = from_vfsgid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1089 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() argument
1109 error = vfs_set_acl_idmapped_mnt(idmap, i_user_ns(inode), kacl); in vfs_set_acl()
1121 error = may_write_xattr(idmap, inode); in vfs_set_acl()
1125 error = security_inode_set_acl(idmap, dentry, acl_name, kacl); in vfs_set_acl()
1134 error = set_posix_acl(idmap, dentry, acl_type, kacl); in vfs_set_acl()
1166 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() argument
1181 error = security_inode_get_acl(idmap, dentry, acl_name); in vfs_get_acl()
1190 acl = __get_acl(idmap, dentry, inode, acl_type); in vfs_get_acl()
1210 int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_remove_acl() argument
1229 error = may_write_xattr(idmap, inode); in vfs_remove_acl()
1233 error = security_inode_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1242 error = set_posix_acl(idmap, dentry, acl_type, NULL); in vfs_remove_acl()
1247 security_inode_post_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1263 int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_set_acl() argument
1279 error = vfs_set_acl(idmap, dentry, acl_name, acl); in do_set_acl()
1284 ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_get_acl() argument
1290 acl = vfs_get_acl(idmap, dentry, acl_name); in do_get_acl()
1294 error = vfs_posix_acl_to_xattr(idmap, d_inode(dentry), in do_get_acl()