ceph: add ceph_mds_check_access() helper
authorXiubo Li <xiubli@redhat.com>
Tue, 7 Nov 2023 06:55:46 +0000 (14:55 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 23 May 2024 08:35:46 +0000 (10:35 +0200)
commit596afb0b8933ba6ed7227adcc538db26feb25c74
tree33c45f7f2433fdb7b60ac06a27fef76d0bafc495
parent1d17de9534cb5a4c4c380d174cc2f9281b34f89e
ceph: add ceph_mds_check_access() helper

This will help check the mds auth access in client side. Always
insert the server path in front of the target path when matching
the paths.

[ idryomov: use u32 instead of uint32_t ]

Link: https://tracker.ceph.com/issues/61333
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h