ubusd: allow all object access if uid=0 (ignore gid)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 9 Dec 2015 19:16:31 +0000 (20:16 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 9 Dec 2015 19:16:36 +0000 (20:16 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubusd_acl.c

index 9c27750..eb5cec5 100644 (file)
@@ -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);