From cd57ebe33b758755906d3823bbe3cef3ddd58f2d Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 15 Mar 2007 13:27:01 +0000 Subject: * bus/config-parser.c, bus/policy.c, bus/policy.h, bus/dbus-daemon.1.in,bus/session.conf.in: added eavesdrop support for replies - patch by olli.salli at collabora.co.uk approved by Havoc Pennington. --- bus/policy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bus/policy.c') diff --git a/bus/policy.c b/bus/policy.c index 7b4c5f26..7782563b 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -900,9 +900,9 @@ bus_client_policy_check_can_send (BusClientPolicy *policy, * only when reply was requested. requested_reply=false means * always allow. */ - if (!requested_reply && rule->allow && rule->d.send.requested_reply) + if (!requested_reply && rule->allow && rule->d.send.requested_reply && !rule->d.send.eavesdrop) { - _dbus_verbose (" (policy) skipping allow rule since it only applies to requested replies\n"); + _dbus_verbose (" (policy) skipping allow rule since it only applies to requested replies and does not allow eavesdropping\n"); continue; } @@ -1086,9 +1086,9 @@ bus_client_policy_check_can_receive (BusClientPolicy *policy, * only when reply was requested. requested_reply=false means * always allow. */ - if (!requested_reply && rule->allow && rule->d.receive.requested_reply) + if (!requested_reply && rule->allow && rule->d.receive.requested_reply && !rule->d.receive.eavesdrop) { - _dbus_verbose (" (policy) skipping allow rule since it only applies to requested replies\n"); + _dbus_verbose (" (policy) skipping allow rule since it only applies to requested replies and does not allow eavesdropping\n"); continue; } -- cgit