]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds/MDSAuthCaps: allow updating root_squash in entity's MDS cap
authorRishabh Dave <ridave@redhat.com>
Tue, 13 Feb 2024 11:46:00 +0000 (17:16 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 9 Sep 2024 13:50:11 +0000 (19:20 +0530)
commit2b96fdc8d5bbf12f68653dd8339fd0ec7fe616b8
tree2987a608b5269da2778556ef8772c1872f57c061
parent41593e9f3411dd1f32bafde09ac78de246cbad52
mds/MDSAuthCaps: allow updating root_squash in entity's MDS cap

Command "ceph fs authorize" can update fsname, path and perm/spec in a
MDS cap but it can't update "root_squash" in it. Add code to allow this.

Specifically, "MDSAuthCaps::merge_one_cap_grant()" doesn't check if
the value for "root_squash" needs an update while attempting to merge
the new MDS cap into the list of MDS caps already held by an entity. It
should do so to ensure correct behaviour.

Fixes: https://tracker.ceph.com/issues/64417
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f6bb5797c1ed3534355ffc6a12dc5f3b08d99f58)
qa/tasks/cephfs/test_admin.py
src/mds/MDSAuthCaps.cc