summaryrefslogtreecommitdiff
path: root/libubus-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* fix blob parsing vulnerability by using blob_parse_untrustedPetr Štetiar2019-12-191-1/+1
| | | | | | | | | | blob_parse expects blobs from trusted inputs, but it can be supplied with possibly malicious blobs from untrusted inputs as well, which might lead to undefined behaviour and/or crash of ubus daemon. In order to prevent such conditions, switch to blob_parse_untrusted which should hopefully handle such untrusted inputs appropriately. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* refactor ubusd.c into reusable ubusd_libraryPetr Štetiar2019-12-161-0/+1
| | | | | | In order to allow reusability in unit testing & fuzzing. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* Allow sending a fd along a ubus_requestamine ahd2016-12-241-1/+3
| | | | Signed-off-by: amine.ahd <amine.ahd@gmail.com>
* libubus: remove ubus_msghdr_data() by passing in the right data structure ↵Felix Fietkau2014-09-151-10/+3
| | | | | | pointer Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: use explicit type name in ubus_msghdr_data instead of typeof()Felix Fietkau2014-07-031-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: move ubus_msghdr_data to libubus-internal.hFelix Fietkau2014-07-031-0/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: always defer processing incoming invoke/unsubscribe/notify if there ↵Felix Fietkau2014-06-241-1/+0
| | | | | | | | | is a request pending This fixes recursion problems on config reload in netifd and simplifies application handling of requests Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: do not use uloop_run() inside ubus_complete_requestFelix Fietkau2014-03-181-0/+2
| | | | | | Avoid unrelated uloop callbacks by using poll() on the ubus fd instead. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus-internal: use the __hidden definition from libuboxFelix Fietkau2014-03-181-2/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: implement file descriptor passing supportFelix Fietkau2014-02-181-4/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: refactor code, move request handling to libubus-req.cFelix Fietkau2012-12-141-1/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: reduce code duplication and add stack depth protection for ↵Felix Fietkau2012-12-141-3/+2
| | | | | | unsubscribe/notify callbacks Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* ubus: add notification for subscribers present/goneFelix Fietkau2012-12-141-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* watch add/remove -> subscribe/unsubscribe:Felix Fietkau2012-12-131-0/+1
| | | | | | | rename the ADD_WATCH/REMOVE_WATCH messages to SUBSCRIBE/UNSUBSCRIBE and change the message format and libubus API in preparation for adding object notifications Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* libubus: split out some code into separate source filesFelix Fietkau2012-10-241-0/+30