summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-policy.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-09-19 14:38:52 +0200
committerDaniel Mack <daniel@zonque.org>2014-09-20 18:47:45 +0200
commit38349552d8d6418229fee9ee68b1f470b4ad7a52 (patch)
treebcda230c8b0a0aa19f8e2aa9a5d55ee5ee4b0855 /src/bus-proxyd/bus-policy.h
parented91202f1c237a41a3ee3754a4a1d37139d7f34f (diff)
bus-policy: add policy check function
Add policy_check() to actually check whether an incoming message is allowed by the policy. The code is not yet used from the proxy daemon, though.
Diffstat (limited to 'src/bus-proxyd/bus-policy.h')
-rw-r--r--src/bus-proxyd/bus-policy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bus-proxyd/bus-policy.h b/src/bus-proxyd/bus-policy.h
index a6ff5c37f6..2222716e7a 100644
--- a/src/bus-proxyd/bus-policy.h
+++ b/src/bus-proxyd/bus-policy.h
@@ -76,6 +76,8 @@ typedef struct Policy {
int policy_load(Policy *p, char **files);
void policy_free(Policy *p);
+bool policy_check(Policy *p, sd_bus_message *m, const struct ucred *c);
+
void policy_dump(Policy *p);
const char* policy_item_type_to_string(PolicyItemType t) _const_;