]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: check relevant caps for fs include root_squash
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 1 May 2024 01:41:14 +0000 (21:41 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 9 May 2024 12:25:29 +0000 (08:25 -0400)
commit9b0f49212b11520961e0663fa0f0fa3452133ee7
tree9c047d42fc9da5871777055d1442736c0b3b3b5e
parent1399fafd220453b706af65e3a5b5dba16ea1a37a
mds: check relevant caps for fs include root_squash

When denying client reconnects because the MDS caps include root_squash and the
client features do not include CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK, ensure those
caps are only for the file system the MDS is joined to.

Fixes: https://tracker.ceph.com/issues/65733
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit f79ae86f2c23388f6ecc3177764735e071998e09)
src/mds/MDSAuthCaps.h
src/mds/Server.cc