summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-06-25 13:13:17 +0200
committerDaniel Mack <daniel@zonque.org>2015-06-25 13:13:17 +0200
commitb9191d7a521e0ec68351031d5bc360b99ac33094 (patch)
tree3344ae59aae47f20a3a74c77b18874bf78d55cb3 /src
parent9124468a5e5664e9fb7ca448021a6d8ea8ec4aeb (diff)
bus-proxy: ignore 'log' attributes in XML policy
'log' is unsupported but nothing to warn about. Ignore it just like we ignore 'eavesdrop'.
Diffstat (limited to 'src')
-rw-r--r--src/bus-proxyd/bus-xml-policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-proxyd/bus-xml-policy.c b/src/bus-proxyd/bus-xml-policy.c
index 675d24485e..dab5acbcb4 100644
--- a/src/bus-proxyd/bus-xml-policy.c
+++ b/src/bus-proxyd/bus-xml-policy.c
@@ -301,7 +301,7 @@ static int file_load(Policy *p, const char *path) {
ic = POLICY_ITEM_USER;
else if (streq(name, "group"))
ic = POLICY_ITEM_GROUP;
- else if (streq(name, "eavesdrop")) {
+ else if (STR_IN_SET(name, "eavesdrop", "log")) {
log_debug("Unsupported attribute %s= at %s:%u, ignoring.", name, path, line);
state = STATE_ALLOW_DENY_OTHER_ATTRIBUTE;
break;