]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
AuthMonitor: no need to check permission in MDS caps
authorRishabh Dave <ridave@redhat.com>
Sat, 24 Jun 2023 04:17:12 +0000 (09:47 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 13 Mar 2024 13:42:30 +0000 (19:12 +0530)
commit52bbb76d09c29297e3c73b047a96af0ba9b66a1b
tree0d7a114a8010dff63dbf15bf4dfb1ac5d925aa49
parent95e5b7cbaafe0fd1cc577232c4665c4ef27acf4e
AuthMonitor: no need to check permission in MDS caps

For "fs authorize" command, AuthMonitor.cc checks if permissions is "r"
or begins with "rw". This check is redundant now.
AuthMonitor::valid_caps() runs MDSAuthCaps.parse() which now runs same
check for the MDS caps, regardless of the command.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 8e1e322054ea14eb5e59969439c0ea27885503ab)

Conflicts:
qa/tasks/cephfs/test_admin.py
Since line numbers where the patch should be applied is
different in quincy branch compared to main branch, the conflict
occured.
qa/tasks/cephfs/test_admin.py
src/mon/AuthMonitor.cc