From b9191d7a521e0ec68351031d5bc360b99ac33094 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 25 Jun 2015 13:13:17 +0200 Subject: bus-proxy: ignore 'log' attributes in XML policy 'log' is unsupported but nothing to warn about. Ignore it just like we ignore 'eavesdrop'. --- src/bus-proxyd/bus-xml-policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bus-proxyd') 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; -- cgit v1.2.3-54-g00ecf