lede/package
Beginner d7e0201ce9
dnsmasq: distinct Ubus names for multiple instances (#7225)
Currently, when using multiple dnsmasq instances they are all assigned
to the same Ubus instance name. This does not work, as only a single
instance can register with Ubus at a time. In the log, this leads to
`Cannot add object to UBus: Invalid argument` error messages.
Furthermore, upstream 3c93e8eb41952a9c91699386132d6fe83050e9be changes
behaviour so that instead of the log, dnsmasq exits at start instead.

With this patch, all dnsmasq instances are assigned unique names so that
they can register with Ubus concurrently. One of the enabled instances
is always assigned the previous default name "dnsmasq" to avoid breaking
backwards compatibility with other software relying on that default.
Previously, a random instance got assigned that name (while the others
produced error logs). Now, the first unnamed dnsmasq config section is
assigned the default name. If there are no unnamed dnsmasq sections the
first encountered named dnsmasq config section is assigned instead.

A similar issue exists for Dbus and was similarly addressed.

Signed-off-by: Etan Kissling <etan.kissling@gmail.com>
[tweaked commit message] dnsmasq was not crashing it is exiting
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>

Co-authored-by: Etan Kissling <etan.kissling@gmail.com>
2021-06-30 05:05:20 +00:00
..
base-files base-files: wifi: tidy up the reconf code 2021-06-29 11:17:51 +08:00
boot ipq807x: add Redmi AX6, Xiaomi AX9000 support 2021-06-24 12:16:06 +08:00
devel add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
firmware ipq807x: fix Xiaomi AX3600/AX9000 support 2021-06-26 02:47:30 +08:00
kernel mac80211: fix a regression in starting aggregation sessions on mesh interfaces (#7226) 2021-06-30 01:01:01 +08:00
lean luci-app-ipsec-vpnd: add strongswan-mod-kernel-libipsec 2021-06-30 13:04:33 +08:00
libs ustream-ssl: variants conflict with each other 2021-06-27 01:00:05 +08:00
network dnsmasq: distinct Ubus names for multiple instances (#7225) 2021-06-30 05:05:20 +00:00
nss kernel: 5.10: re-add shortcut-fe patch (#7204) 2021-06-28 02:30:57 +00:00
system urngd: fix busy loop in case of ioctl cause high cpu usage 2021-06-21 11:52:55 +08:00
utils busybox: sysntpd: add trigger to reload server 2021-06-29 11:09:36 +08:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00