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 12:20:43 -0500
commit427ff01f9d656700b370bb905fe738e76602a842 (patch)
tree502e841d20e15d9f090b2df625816463cdf6fb28 /bus/config-parser.c
parent8cbe86da9089901c574387e4032f0858e8249c79 (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 f4d7c501..a8de3ff3 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -1090,6 +1090,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;
@@ -1133,6 +1134,7 @@ append_rule_from_element (BusConfigParser *parser,
"own", &own,
"user", &user,
"group", &group,
+ "log", &log,
NULL))
return FALSE;
@@ -1337,6 +1339,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);