]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: expand cap validity check for mgr, osd, mds
authorlijing <lijing@gohighsec.com>
Fri, 5 Jan 2018 09:44:57 +0000 (17:44 +0800)
committerSage Weil <sage@redhat.com>
Tue, 10 Apr 2018 12:39:06 +0000 (07:39 -0500)
commit113fa941e3a4feaed0891d1fb7d321ade3e1bca7
tree29400b69397543e01e8b755677a3f2024dc81901
parent447a107d5f220852ffa0630f7b4515b30e2d0b2a
mon: expand cap validity check for mgr, osd, mds

Also strenghen the check to declare an unknown cap type as invalid.

Note that this means that in a mixed-version cluster, an older mon
would apply the syntax check for the older caps, even if the (say) OSDs
are newer and could parse something different.  This is judged to be fine:
it is not unreasonable to ask for the mons *and* daemons to be upgraded
before using the new cap syntax or feature.

Signed-off-by: Jing Li <lijing@gohighsec.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h
src/mon/CMakeLists.txt