]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: AuthMonitor: validate caps when creating or changing mon caps
authorJoao Eduardo Luis <joao.luis@inktank.com>
Mon, 8 Sep 2014 10:28:48 +0000 (11:28 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 3 Oct 2014 15:24:10 +0000 (16:24 +0100)
commit861246158e2e3d50e799f200f7180295bf7f439e
tree3dde89f07a0a2fbb6108aaadbc57ce791bf3f158
parent34e665867eb299f3270a2a25386cdd3a4c3f0c6a
mon: AuthMonitor: validate caps when creating or changing mon caps

The monitor doesn't really know how to validate caps not meant for it.
The MDS or the OSD may very well allow blank caps for instance, while
the monitor categorically does not.  We can't simply state a capability
is invalid because we wouldn't take it as such.

On the other hand, we must check monitor caps and make sure they are
correct, otherwise malformed caps can go unnoticed for a while,
sometimes even being hard to understand what may have gone wrong.

Backport: firefly

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h