diff options
author | Colin Walters <walters@verbum.org> | 2008-12-16 11:57:27 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2008-12-16 11:57:27 -0500 |
commit | 6053d2208e85d1a685df385620eff45895211b0c (patch) | |
tree | 3a7a0618065f49e59adc593946fb9e327369cd93 /bus/policy.c | |
parent | b45440148a81d3efc0ed1a670f6e498de129bc62 (diff) | |
download | dbus-6053d2208e85d1a685df385620eff45895211b0c.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.
Diffstat (limited to 'bus/policy.c')
-rw-r--r-- | bus/policy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bus/policy.c b/bus/policy.c index 2c1a3541..ef31800f 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -867,7 +867,8 @@ 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) { DBusList *link; dbus_bool_t allowed; @@ -1028,6 +1029,7 @@ bus_client_policy_check_can_send (BusClientPolicy *policy, /* Use this rule */ allowed = rule->allow; + *log = rule->d.send.log; (*toggles)++; _dbus_verbose (" (policy) used rule, allow now = %d\n", |