From 427ff01f9d656700b370bb905fe738e76602a842 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 16 Dec 2008 11:57:27 -0500 Subject: Add optional logging on allow rules This lets us have a backwards compatibility allow rule but still easily see when that rule is being used. --- 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 91fde99f..a75e0dd9 100644 --- a/bus/policy.h +++ b/bus/policy.h @@ -65,6 +65,7 @@ struct BusPolicyRule char *destination; unsigned int eavesdrop : 1; unsigned int requested_reply : 1; + unsigned int log : 1; } send; struct @@ -142,7 +143,8 @@ dbus_bool_t bus_client_policy_check_can_send (BusClientPolicy *policy, dbus_bool_t requested_reply, DBusConnection *receiver, DBusMessage *message, - dbus_int32_t *toggles); + dbus_int32_t *toggles, + dbus_bool_t *log); dbus_bool_t bus_client_policy_check_can_receive (BusClientPolicy *policy, BusRegistry *registry, dbus_bool_t requested_reply, -- cgit