Repository navigation
ApmonD 1.0.1
ApmonD 1.0.1
A security and readability update to ApmonD 1.0.0. Upgrading is recommended on every node.
Security
- The collector's reply to a report is no longer sourced as shell. Each value is sanitised when it is written to
last_send, andapmond statusparses the file instead of running it, so a rogue collector reply cannot run commands on an access point. The old 1.0.0last_sendformat is still read.
New
node_statusin each report now carries the node's apmond ULA (node_ula) and its IPv4 addresses (ipv4_addresses), afterdevice_mac. Both are optional: the protocol stays at 1, and 1.0.0 collectors and mesh11sd accept and show the new report unchanged.-vand--versionprint the version, as mesh11sd does, andservice apmond startandrestartprint it too.
Readability
- The script was reworked for human readability: one statement per line, multi-line
if/for/case, blank lines between steps, short comments, ajson_field()helper for the status JSON, and a cleareripv6_canon()andjson_array(). There is no change in behaviour.
Tested on two GL-MT300N-V2 running OpenWrt 25.12.5, and with the mock end to end tests (238 pass, including a 1.0.0 collector receiving a 1.0.1 report).
Install: build the package with the feed template linux_openwrt/apmond/Makefile (OpenWrt 25.12 or later, apk), or use the OpenWrt packages feed once it lands there (openwrt/packages#30935).
LuCI support: luci-app-apmond 1.0.1.
Full list of changes: ChangeLog