]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: check caps and source before dispatching messages
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 16 Sep 2014 15:32:37 +0000 (16:32 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 3 Oct 2014 15:24:19 +0000 (16:24 +0100)
commitc0e3bc9a30f5e430d7489ead748011799b48857a
tree4334393f86c27ff172b7c6df6e31a35573a6d602
parent3d78285dfa6eac4098f4a1d2e6d657d8089f08d2
mon: Monitor: check caps and source before dispatching messages

Only dispatch messages that a client may send if said client has at
least MON_CAP_R, and only dispatch internal monitor messages if peer is
a monitor.

Backport: firefly

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/Monitor.cc