]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: check caps validity for all cap-related commands
authorSage Weil <sage@redhat.com>
Mon, 9 Apr 2018 21:40:37 +0000 (16:40 -0500)
committerSage Weil <sage@redhat.com>
Tue, 10 Apr 2018 12:39:06 +0000 (07:39 -0500)
commitfa588730bfea17eb1ca556e20ffcfd0b7628d093
treee24487853aedc61b46af29ac805bedc4f327d561
parent113fa941e3a4feaed0891d1fb7d321ade3e1bca7
mon/AuthMonitor: check caps validity for all cap-related commands

Add a validity check for 'auth add' and 'fs authorize'.  'auth caps' and
'auth get-or-create[-key]' already had the check.

Fixes: http://tracker.ceph.com/issues/22525
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/AuthMonitor.cc