Set error when message delivery is denied due to receive rule
authorJacek Bukarewicz <j.bukarewicz@samsung.com>
Fri, 14 Nov 2014 18:39:38 +0000 (18:39 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 14 Nov 2014 18:40:50 +0000 (18:40 +0000)
commit8ee1a7b57cfb99259164e45922df556382c0e0ad
treef124fdfa65ed7d034e7e60421e8f128981c03e14
parent3210bda8013489484d4ab9f6c4adaf8d662bf6c9
Set error when message delivery is denied due to receive rule

This makes bus_context_check_security_policy follow convention of
setting errors if function indicates failure and has error parameter.
Notable implication is that AccessDenied error will be sent if sending message
to addressed recipient is denied due to receive rule. Previously, message
was silently dropped.

This also fixes assertion failure when message is denied at addressed recipient
while sending pending auto activation messages.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86194
bus/bus.c