summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-policy.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-14 20:06:01 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-14 20:06:01 +0100
commitf5d8989ce5fc4e6eb338ec7b1b2c6d6a74c44c63 (patch)
tree8e06a9e15c7e2a0c5977f4a7128031576d030663 /src/bus-proxyd/bus-policy.c
parent49d4b1eecfefded66fd48a992633958da30035d7 (diff)
bus-proxy: properly check for bus name prefixes when enforcing policy
Diffstat (limited to 'src/bus-proxyd/bus-policy.c')
-rw-r--r--src/bus-proxyd/bus-policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-proxyd/bus-policy.c b/src/bus-proxyd/bus-policy.c
index 625f5ddaee..cb0726aa3f 100644
--- a/src/bus-proxyd/bus-policy.c
+++ b/src/bus-proxyd/bus-policy.c
@@ -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;