From: Joao Eduardo Luis Date: Mon, 23 Sep 2013 10:34:05 +0000 (+0100) Subject: mon: Monitor: only handle paxos msgs from a mon && if session has exec caps X-Git-Tag: mark-v0.70-wip~2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29cf2ff02aa921ba619367158d68c579c337600e;p=ceph.git mon: Monitor: only handle paxos msgs from a mon && if session has exec caps Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index baf6c035b7dd..d60ffceb87a5 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2737,7 +2737,7 @@ bool Monitor::dispatch(MonSession *s, Message *m, const bool src_is_mon) case MSG_MON_PAXOS: { MMonPaxos *pm = static_cast(m); - if (!src_is_mon && + if (!src_is_mon || !s->is_capable("mon", MON_CAP_X)) { //can't send these! pm->put();