chiark / gitweb /
bus-proxy: properly check for bus name prefixes when enforcing policy
[elogind.git] / src / bus-proxyd / bus-policy.c
index 625f5ddaeee6648bd207d2026772afa26b55ff5b..cb0726aa3ffb7e0de28d866049bb21f2b4886de6 100644 (file)
@@ -651,7 +651,7 @@ static int check_policy_item(PolicyItem *i, const struct policy_check_filter *fi
         case POLICY_ITEM_OWN_PREFIX:
                 assert(filter->name);
 
-                if (streq(i->name, "*") || startswith(i->name, filter->name))
+                if (streq(i->name, "*") || service_name_startswith(i->name, filter->name))
                         return is_permissive(i);
                 break;