ubusd: allow all object access if uid=0 (ignore gid)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2015-12-09 20:16:31 +01:00
parent 8c9322c723
commit 68da4ceb87

View file

@ -101,7 +101,7 @@ ubusd_acl_check(struct ubus_client *cl, const char *obj,
struct blob_attr *cur; struct blob_attr *cur;
int rem; int rem;
if (!cl->gid && !cl->uid) if (!cl->uid)
return 0; return 0;
acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl); acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);