Skip to content

Commit 8995375

Browse files
brauneridryomov
authored andcommitted
ceph: allow idmapped permission inode op
Enable ceph_permission() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 0513043 commit 8995375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ceph/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ int ceph_permission(struct mnt_idmap *idmap, struct inode *inode,
29702970
err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED, false);
29712971

29722972
if (!err)
2973-
err = generic_permission(&nop_mnt_idmap, inode, mask);
2973+
err = generic_permission(idmap, inode, mask);
29742974
return err;
29752975
}
29762976

0 commit comments

Comments
 (0)