]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: allow mgr to tell mon.foo smart
authorSage Weil <sage@redhat.com>
Tue, 22 Oct 2019 15:10:14 +0000 (10:10 -0500)
committerSage Weil <sage@redhat.com>
Tue, 22 Oct 2019 15:10:14 +0000 (10:10 -0500)
commit64b9fd8b5826985a79ffc137335ac540f4db36a1
tree3991709753108ac9fc4caf23da61cf1b2029bc80
parentd221996d75a2e78113e99cff627a5330464ff691
mon: allow mgr to tell mon.foo smart

The mgr profile needs to do a tell command to the mon, which was restricted
to *only* allow_all (*) caps.  Additionally allow whitelisted commands,
and whitelist 'smart'.  This is somewhat imprecise since it conflates
tell vs cli commands in the MonCap, but since those don't overlap it should
be fine.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCap.cc
src/mon/Monitor.cc