diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-09 20:16:31 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-09 20:16:36 +0100 |
commit | 68da4ceb873e7bdd12e0b7256a433fe8fdcf3bb5 (patch) | |
tree | 139ccaa1c1b3e20459162897af0f066b0210beb5 | |
parent | 8c9322c7237a245e445c1ffac696660b78a0e0ff (diff) | |
download | ubus-68da4ceb873e7bdd12e0b7256a433fe8fdcf3bb5.tar.gz |
ubusd: allow all object access if uid=0 (ignore gid)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | ubusd_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |