summaryrefslogtreecommitdiff
path: root/ubusd_acl.c
Commit message (Collapse)AuthorAgeFilesLines
* ubusd: fix inverted check in ubusd_reply_addDenis Osvald2016-09-051-1/+1
| | | | Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
* ubusd: don't check ACL when object is NULLDenis Osvald2016-08-251-1/+1
| | | | | | | | | | | If there are any ACLs present other than global wildcard "*", the AVL tree comparator will compare ACL key to object name. However, object name can be NULL in cases where ACL check is done on call to internal ubus objects (e.g. ubus monitor). With this change we skip checking ACLs on such NULL objects. Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
* ubusd: fix a memory leak on user/group client infoFelix Fietkau2016-01-261-0/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: add missing NULL pointer checks for ACL processingFelix Fietkau2016-01-131-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: allow all object access if uid=0 (ignore gid)Felix Fietkau2015-12-091-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: simplify/fix avl loop in ubusd_reply_add()Felix Fietkau2015-12-091-15/+17
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: simplify/fix avl loop in ubusd_acl_check()Felix Fietkau2015-12-091-5/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: make ACL path configurable on the command lineFelix Fietkau2015-12-091-1/+5
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubusd: remove a faulty and redundant checkFelix Fietkau2015-12-091-3/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fix off-by-one in acl match iterationJohn Crispin2015-09-221-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* unbreak acl allocationJohn Crispin2015-09-221-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* fix a copy & paste bugJohn Crispin2015-07-011-1/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* ubusd: fix build on non-linux systems without peercred supportFelix Fietkau2015-06-241-1/+14
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add acl codeJohn Crispin2015-06-181-0/+469
Signed-off-by: John Crispin <blogic@openwrt.org>