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()
374 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() argument
389 vfsuid = i_uid_into_vfsuid(idmap, inode); in posix_acl_permission()
394 vfsuid = make_vfsuid(idmap, fs_userns, in posix_acl_permission()
400 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission()
408 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission()
604 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() argument
626 ret = inode->i_op->set_acl(idmap, dentry, acl, ACL_TYPE_ACCESS); in posix_acl_chmod()
705 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() argument
717 if (!in_group_or_capable(idmap, inode, in posix_acl_update_mode()
718 i_gid_into_vfsgid(idmap, inode))) in posix_acl_update_mode()
886 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() argument
916 vfsuid = make_vfsuid(idmap, fs_userns, acl_e->e_uid); in vfs_posix_acl_to_xattr()
921 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); in vfs_posix_acl_to_xattr()
934 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() argument
946 if (!inode_owner_or_capable(idmap, inode)) in set_posix_acl()
954 return inode->i_op->set_acl(idmap, dentry, acl, type); in set_posix_acl()
1015 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() argument
1022 error = posix_acl_update_mode(idmap, inode, in simple_set_acl()
1054 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() argument
1063 acl_e->e_uid = from_vfsuid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1067 acl_e->e_gid = from_vfsgid(idmap, fs_userns, in vfs_set_acl_idmapped_mnt()
1088 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() argument
1108 error = vfs_set_acl_idmapped_mnt(idmap, i_user_ns(inode), kacl); in vfs_set_acl()
1120 error = may_write_xattr(idmap, inode); in vfs_set_acl()
1124 error = security_inode_set_acl(idmap, dentry, acl_name, kacl); in vfs_set_acl()
1133 error = set_posix_acl(idmap, dentry, acl_type, kacl); in vfs_set_acl()
1165 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() argument
1180 error = security_inode_get_acl(idmap, dentry, acl_name); in vfs_get_acl()
1189 acl = __get_acl(idmap, dentry, inode, acl_type); in vfs_get_acl()
1209 int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_remove_acl() argument
1228 error = may_write_xattr(idmap, inode); in vfs_remove_acl()
1232 error = security_inode_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1241 error = set_posix_acl(idmap, dentry, acl_type, NULL); in vfs_remove_acl()
1246 security_inode_post_remove_acl(idmap, dentry, acl_name); in vfs_remove_acl()
1262 int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_set_acl() argument
1278 error = vfs_set_acl(idmap, dentry, acl_name, acl); in do_set_acl()
1283 ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, in do_get_acl() argument
1289 acl = vfs_get_acl(idmap, dentry, acl_name); in do_get_acl()
1293 error = vfs_posix_acl_to_xattr(idmap, d_inode(dentry), in do_get_acl()