]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-proxy: ignore 'log' attributes in XML policy 363/head
authorDaniel Mack <daniel@zonque.org>
Thu, 25 Jun 2015 11:13:17 +0000 (13:13 +0200)
committerDaniel Mack <daniel@zonque.org>
Thu, 25 Jun 2015 11:13:17 +0000 (13:13 +0200)
'log' is unsupported but nothing to warn about. Ignore it just like we
ignore 'eavesdrop'.

src/bus-proxyd/bus-xml-policy.c

index 675d24485e4511923b8881059d1da000c22cbc3b..dab5acbcb4e70725b663370c51df8c595937d7b3 100644 (file)
@@ -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;