projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubusd_acl: event send access list support
[project/ubus.git]
/
ubusd_event.c
diff --git
a/ubusd_event.c
b/ubusd_event.c
index 6e612a19070b19a2a65577a3143aefeeeab532d9..712e7049946a88acba0207ce72ed0fc78653ec05 100644
(file)
--- a/
ubusd_event.c
+++ b/
ubusd_event.c
@@
-142,6
+142,9
@@
int ubusd_send_event(struct ubus_client *cl, const char *id,
struct event_source *ev;
int match_len = 0;
+ if (ubusd_acl_check(cl, id, NULL, UBUS_ACL_SEND))
+ return UBUS_STATUS_PERMISSION_DENIED;
+
obj_event_seq++;
/*