From f79d96504973134b36985e152cb0badaceac3ed4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 19 Jul 2013 21:44:26 -0700 Subject: [PATCH] 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 --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 90750dd7b1167..8b38adf449d7c 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1538,7 +1538,7 @@ bool Monitor::_allowed_command(MonSession *s, map& cmd) } if (s->caps.is_capable(g_ceph_context, s->inst.name, - "", prefix, strmap, false, false, false)) { + "", prefix, strmap, false, false, true)) { retval = true; } -- 2.39.5