From 68da4ceb873e7bdd12e0b7256a433fe8fdcf3bb5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 9 Dec 2015 20:16:31 +0100 Subject: [PATCH] ubusd: allow all object access if uid=0 (ignore gid) Signed-off-by: Felix Fietkau --- ubusd_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);