mirror of
https://git.openwrt.org/project/ubus.git
synced 2025-12-20 00:51:28 +08:00
ubusd: fix ACL check for receiving events
Wildcard event match must also be subject to ACL checks Reported-by: Karsten Sperling <ksperling@apple.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -93,7 +93,7 @@ static int ubusd_alloc_event_pattern(struct ubus_client *cl, struct blob_attr *m
|
||||
len--;
|
||||
}
|
||||
|
||||
if (pattern[0] && ubusd_acl_check(cl, pattern, NULL, UBUS_ACL_LISTEN))
|
||||
if (ubusd_acl_check(cl, pattern, NULL, UBUS_ACL_LISTEN))
|
||||
return UBUS_STATUS_PERMISSION_DENIED;
|
||||
|
||||
ev = calloc(1, sizeof(*ev) + len + 1);
|
||||
|
||||
Reference in New Issue
Block a user