summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-policy.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-10-09 13:26:53 +0200
committerDaniel Mack <daniel@zonque.org>2014-10-09 13:31:01 +0200
commitd46fbfb48deff83943355992e55f9ef4431ff5ef (patch)
tree8a9603e4569183cc311f660c00c67057c4fd5784 /src/bus-proxyd/bus-policy.h
parent374738d55b2bc4ab07c22f9a0be95a76de1c9478 (diff)
bus-policy: move name list iteration to policy users
We need to figure out which of the possible names satisfied the policy, so we cannot do the iteration in check_policy_item() but have to leave it to the users. Test cases amended accordingly.
Diffstat (limited to 'src/bus-proxyd/bus-policy.h')
-rw-r--r--src/bus-proxyd/bus-policy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bus-proxyd/bus-policy.h b/src/bus-proxyd/bus-policy.h
index 5b4d9d0c10..64fe1ffac5 100644
--- a/src/bus-proxyd/bus-policy.h
+++ b/src/bus-proxyd/bus-policy.h
@@ -80,15 +80,15 @@ bool policy_check_own(Policy *p, const struct ucred *ucred, const char *name);
bool policy_check_hello(Policy *p, const struct ucred *ucred);
bool policy_check_recv(Policy *p,
const struct ucred *ucred,
- Hashmap *names,
int message_type,
+ const char *name,
const char *path,
const char *interface,
const char *member);
bool policy_check_send(Policy *p,
const struct ucred *ucred,
- char **names,
int message_type,
+ const char *name,
const char *path,
const char *interface,
const char *member);