]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/MDSAuthCaps: allow updating root_squash in entity's MDS cap 55320/head
authorRishabh Dave <ridave@redhat.com>
Tue, 13 Feb 2024 11:46:00 +0000 (17:16 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 16 Feb 2024 11:01:59 +0000 (16:31 +0530)
commitf6bb5797c1ed3534355ffc6a12dc5f3b08d99f58
tree55be4738f1086822d998c785bd2016c1bbe9c9d6
parent56e0f73afe5fdebf38af339efea0dfde65a4de87
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>
qa/tasks/cephfs/test_admin.py
src/mds/MDSAuthCaps.cc