Lines Matching refs:idmap

115 static struct posix_acl *__get_acl(struct mnt_idmap *idmap,  in __get_acl()  argument
158 acl = inode->i_op->get_acl(idmap, dentry, type); in __get_acl()
376 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() argument
391 vfsuid = i_uid_into_vfsuid(idmap, inode); in posix_acl_permission()
396 vfsuid = make_vfsuid(idmap, fs_userns, in posix_acl_permission()
402 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
410 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
606 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() argument
628 ret = inode->i_op->set_acl(idmap, dentry, acl, ACL_TYPE_ACCESS); in posix_acl_chmod()
707 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() argument
719 if (!vfsgid_in_group_p(i_gid_into_vfsgid(idmap, inode)) && in posix_acl_update_mode()
720 !capable_wrt_inode_uidgid(idmap, inode, CAP_FSETID)) in posix_acl_update_mode()
888 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() argument
918 vfsuid = make_vfsuid(idmap, fs_userns, acl_e->e_uid); in vfs_posix_acl_to_xattr()
923 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
936 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() argument
948 if (!inode_owner_or_capable(idmap, inode)) in set_posix_acl()
956 return inode->i_op->set_acl(idmap, dentry, acl, type); in set_posix_acl()
980 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() argument
987 error = posix_acl_update_mode(idmap, inode, in simple_set_acl()
1019 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() argument
1028 acl_e->e_uid = from_vfsuid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1032 acl_e->e_gid = from_vfsgid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1053 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() argument
1073 error = vfs_set_acl_idmapped_mnt(idmap, i_user_ns(inode), kacl); in vfs_set_acl()
1085 error = may_write_xattr(idmap, inode); in vfs_set_acl()
1089 error = security_inode_set_acl(idmap, dentry, acl_name, kacl); in vfs_set_acl()
1098 error = set_posix_acl(idmap, dentry, acl_type, kacl); in vfs_set_acl()
1132 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() argument
1147 error = security_inode_get_acl(idmap, dentry, acl_name); in vfs_get_acl()
1156 acl = __get_acl(idmap, dentry, inode, acl_type); in vfs_get_acl()
1176 int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_remove_acl() argument
1195 error = may_write_xattr(idmap, inode); in vfs_remove_acl()
1199 error = security_inode_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1208 error = set_posix_acl(idmap, dentry, acl_type, NULL); in vfs_remove_acl()
1215 evm_inode_post_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1231 int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_set_acl() argument
1247 error = vfs_set_acl(idmap, dentry, acl_name, acl); in do_set_acl()
1252 ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_get_acl() argument
1258 acl = vfs_get_acl(idmap, dentry, acl_name); in do_get_acl()
1262 error = vfs_posix_acl_to_xattr(idmap, d_inode(dentry), in do_get_acl()