]> git.apps.os.sepia.ceph.com Git - ceph-ci.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, 3 Apr 2024 17:32:08 +0000 (23:02 +0530)
commit24c435d9b4f35e78cbcecdb074124174133e4db0
tree189ef44dec54a5e099b5d8ea56738dbf2c8ee051
parent9e3f16ab73b28d23036f3d375587f2671da60d43
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)
qa/tasks/cephfs/test_admin.py
src/mon/AuthMonitor.cc