summaryrefslogtreecommitdiff
path: root/bus/policy.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-01-21 16:05:59 -0500
committerColin Walters <walters@verbum.org>2009-01-21 16:05:59 -0500
commitf303c2525792188f9d65df3113e23d41ab342b01 (patch)
treef5f7a1148f2473ad456b5ad94a118624823845c6 /bus/policy.h
parentc42a14b936d7adb993b701cc6e3078cf75125c99 (diff)
downloaddbus-f303c2525792188f9d65df3113e23d41ab342b01.tar.gz
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. Conflicts: bus/config-parser.c
Diffstat (limited to 'bus/policy.h')
-rw-r--r--bus/policy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bus/policy.h b/bus/policy.h
index 7e2df1e7..5218973e 100644
--- a/bus/policy.h
+++ b/bus/policy.h
@@ -64,6 +64,7 @@ struct BusPolicyRule
char *error;
char *destination;
unsigned int requested_reply : 1;
+ unsigned int log : 1;
} send;
struct
@@ -140,7 +141,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,