]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonCap: check profile_grants too while checking caps 37190/head
authorRishabh Dave <ridave@redhat.com>
Wed, 16 Sep 2020 10:59:24 +0000 (16:29 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 18 Sep 2020 07:53:35 +0000 (13:23 +0530)
commite7a721f0d2642047bdf0548da224698da7a2ce86
tree5c1ca80efbe1888cc2585b49b6986d765ff3483d
parentae4fd30ffc55faf9300dc6553aa4cb149a9663ab
mon/MonCap: check profile_grants too while checking caps

When checking if a certain fs subcommand can and should be executed in
FSCommands.cc, check permissions in "profile_grants" too when the caps
for that entity contains a cap profile.

Fixes: https://tracker.ceph.com/issues/47423
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/MonCap.h
src/mon/Session.h