From 64f5ae1a79a8cd86a3aae55e485729da438d84d0 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 14 Oct 2003 05:16:56 +0000 Subject: 2003-10-14 Havoc Pennington * bus/connection.c: implement pending reply tracking using BusExpireList * bus/bus.c (bus_context_check_security_policy): verify that a reply is pending in order to allow a reply to be sent. Deny messages of unknown type. * bus/dbus-daemon-1.1.in: update to mention new resource limits * bus/bus.c (bus_context_get_max_replies_per_connection): new (bus_context_get_reply_timeout): new --- bus/dispatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bus/dispatch.c') diff --git a/bus/dispatch.c b/bus/dispatch.c index e238cb4c..6c5eadf1 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -42,7 +42,7 @@ send_one_message (DBusConnection *connection, BusTransaction *transaction, DBusError *error) { - if (!bus_context_check_security_policy (context, + if (!bus_context_check_security_policy (context, transaction, sender, addressed_recipient, connection, @@ -229,7 +229,7 @@ bus_dispatch (DBusConnection *connection, if (service_name && strcmp (service_name, DBUS_SERVICE_ORG_FREEDESKTOP_DBUS) == 0) /* to bus driver */ { - if (!bus_context_check_security_policy (context, + if (!bus_context_check_security_policy (context, transaction, connection, NULL, NULL, message, &error)) { _dbus_verbose ("Security policy rejected message\n"); @@ -272,7 +272,7 @@ bus_dispatch (DBusConnection *connection, addressed_recipient = bus_service_get_primary_owner (service); _dbus_assert (addressed_recipient != NULL); - if (!bus_context_check_security_policy (context, + if (!bus_context_check_security_policy (context, transaction, connection, addressed_recipient, addressed_recipient, message, &error)) -- cgit