summaryrefslogtreecommitdiff
path: root/ubusd_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubusd_event.c')
-rw-r--r--ubusd_event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ubusd_event.c b/ubusd_event.c
index 6e612a1..712e704 100644
--- 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++;
/*