From 7c77664c5a38d44b14044286e7e5aa7def858889 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 29 May 2004 04:17:17 +0000 Subject: 2004-05-29 Havoc Pennington * bus/config-parser.c (process_test_valid_subdir): temporarily stop testing config parser OOM handling, since expat has issues http://freedesktop.org/pipermail/dbus/2004-May/001153.html * bus/dbus-daemon-1.1.in: change requested_reply to send_requested_reply/receive_requested_reply so we can send the replies, not just receive them. * bus/config-parser.c: parse the new send_requested_reply/receive_requested_reply * bus/policy.c (bus_client_policy_check_can_send): add requested_reply argument and use it * bus/bus.c (bus_context_check_security_policy): pass through requested_reply status to message send check * bus/system.conf.in: adapt to requested_reply change --- bus/policy.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bus/policy.h') diff --git a/bus/policy.h b/bus/policy.h index 7fbb2c6c..f2bac8cc 100644 --- a/bus/policy.h +++ b/bus/policy.h @@ -61,7 +61,8 @@ struct BusPolicyRule char *interface; char *member; char *error; - char *destination; + char *destination; + unsigned int requested_reply : 1; } send; struct @@ -131,6 +132,7 @@ BusClientPolicy* bus_client_policy_ref (BusClientPolicy *policy); void bus_client_policy_unref (BusClientPolicy *policy); dbus_bool_t bus_client_policy_check_can_send (BusClientPolicy *policy, BusRegistry *registry, + dbus_bool_t requested_reply, DBusConnection *receiver, DBusMessage *message); dbus_bool_t bus_client_policy_check_can_receive (BusClientPolicy *policy, -- cgit