diff options
| author | Felix Fietkau | 2025-10-17 11:15:26 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-10-17 11:28:09 +0000 |
| commit | 60e04048a0e2f3e33651c19e62861b41be4c290f (patch) | |
| tree | 895ef76071c53a761cc38b8bf4ecd066123b74d6 | |
| parent | aa4a7ee1d3417bc11207ad0a78d579ece7fe0c13 (diff) | |
| download | ubus-60e04048a0e2f3e33651c19e62861b41be4c290f.tar.gz | |
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>
| -rw-r--r-- | ubusd_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubusd_event.c b/ubusd_event.c index 09c53dd..3036969 100644 --- a/ubusd_event.c +++ b/ubusd_event.c @@ -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); |