From: Felix Fietkau Date: Wed, 9 Dec 2015 19:16:31 +0000 (+0100) Subject: ubusd: allow all object access if uid=0 (ignore gid) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=68da4ceb873e7bdd12e0b7256a433fe8fdcf3bb5;p=project%2Fubus.git ubusd: allow all object access if uid=0 (ignore gid) Signed-off-by: Felix Fietkau --- diff --git a/ubusd_acl.c b/ubusd_acl.c index 9c27750..eb5cec5 100644 --- a/ubusd_acl.c +++ b/ubusd_acl.c @@ -101,7 +101,7 @@ ubusd_acl_check(struct ubus_client *cl, const char *obj, struct blob_attr *cur; int rem; - if (!cl->gid && !cl->uid) + if (!cl->uid) return 0; acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);