summaryrefslogtreecommitdiffstats
path: root/bus/config-parser.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2008-12-16 11:57:27 -0500
committerColin Walters <walters@verbum.org>2008-12-16 11:57:27 -0500
commit6053d2208e85d1a685df385620eff45895211b0c (patch)
tree3a7a0618065f49e59adc593946fb9e327369cd93 /bus/config-parser.c
parentb45440148a81d3efc0ed1a670f6e498de129bc62 (diff)
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/config-parser.c')
-rw-r--r--bus/config-parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index 4e3be531..34d8684a 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -1126,6 +1126,7 @@ append_rule_from_element (BusConfigParser *parser,
dbus_bool_t allow,
DBusError *error)
{
+ const char *log;
const char *send_interface;
const char *send_member;
const char *send_error;
@@ -1169,6 +1170,7 @@ append_rule_from_element (BusConfigParser *parser,
"own", &own,
"user", &user,
"group", &group,
+ "log", &log,
NULL))
return FALSE;
@@ -1373,6 +1375,9 @@ append_rule_from_element (BusConfigParser *parser,
if (eavesdrop)
rule->d.send.eavesdrop = (strcmp (eavesdrop, "true") == 0);
+ if (log)
+ rule->d.send.log = (strcmp (log, "true") == 0);
+
if (send_requested_reply)
rule->d.send.requested_reply = (strcmp (send_requested_reply, "true") == 0);