summaryrefslogtreecommitdiff
path: root/ubusd_acl.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-10-03 15:36:17 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-10-06 20:39:34 +0200
commitda503db6603732ddee39b4b252d21463bfcefbbc (patch)
treeb247905832d1cb6f536744e178f2efce7449f6b3 /ubusd_acl.h
parentc035bab01ccbd9efd21d4a3bc9eceb438729e15d (diff)
downloadubus-da503db6603732ddee39b4b252d21463bfcefbbc.tar.gz
ubusd_acl: event listen access list support
Adds event listen access list support in ubus via the "listen" keyword Example of a json file: { "user": "superuser", "listen": [ "network.*" ], } Signed-off-by: Koen Dergent <koen.cj.dergent@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'ubusd_acl.h')
-rw-r--r--ubusd_acl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ubusd_acl.h b/ubusd_acl.h
index c5dfd8a..a6a6a30 100644
--- a/ubusd_acl.h
+++ b/ubusd_acl.h
@@ -18,6 +18,7 @@ enum ubusd_acl_type {
UBUS_ACL_PUBLISH,
UBUS_ACL_SUBSCRIBE,
UBUS_ACL_ACCESS,
+ UBUS_ACL_LISTEN,
};
int ubusd_acl_check(struct ubus_client *cl, const char *obj, const char *method, enum ubusd_acl_type type);