diff options
author | Sage Weil <sage@inktank.com> | 2013-07-19 21:44:26 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-19 22:32:23 -0700 |
commit | f79d96504973134b36985e152cb0badaceac3ed4 (patch) | |
tree | afd46a82caefb24076adde812120a32da87e28c7 | |
parent | fb2150425b5d41334763eb60f8ff648166aef7a1 (diff) | |
download | ceph-f79d96504973134b36985e152cb0badaceac3ed4.tar.gz |
mon: fix command caps check
We must require something or else the caps check is going to pass in
a degenerate sense. Use X for commands.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/Monitor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 90750dd7b11..8b38adf449d 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1538,7 +1538,7 @@ bool Monitor::_allowed_command(MonSession *s, map<string, cmd_vartype>& cmd) } if (s->caps.is_capable(g_ceph_context, s->inst.name, - "", prefix, strmap, false, false, false)) { + "", prefix, strmap, false, false, true)) { retval = true; } |