netalertx: suppress misleading upstream capabilities-audit ALERT (#2454)

Under the Home Assistant Supervisor the required NET_RAW/NET_ADMIN
capabilities are granted, but NetAlertX's upstream capabilities-audit
script cannot read them and prints a "🚨 ALERT: capabilities are missing"
banner. Users repeatedly mistook this informational message for the cause
of unrelated issues. Neutralise the audit script at build time (kept in
place as a no-op for the entrypoint runner) and bump version/changelog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfZ5JKAR2NHP1KjoAGyBBD
This commit is contained in:
Claude
2026-06-19 13:58:42 +00:00
parent 92f5520766
commit 68fd970fc6
3 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
## 26.6.3-1 (2026-06-19)
- Suppress the misleading upstream "capabilities audit" ALERT (NET_RAW/NET_ADMIN reported as missing). Under the Home Assistant Supervisor these capabilities are granted but the upstream audit cannot read them, which alarmed users (#2454).
## 26.6.3 (2026-06-05)
- Update to latest version from jokob-sk/NetAlertX (changelog : https://github.com/jokob-sk/NetAlertX/releases)

View File

@@ -58,6 +58,18 @@ USER 0
COPY rootfs/ /
RUN find . -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -print -exec chmod +x {} \;
# Neutralise the upstream capabilities-audit step.
# Under the Home Assistant Supervisor the required NET_RAW/NET_ADMIN capabilities
# are granted, but the upstream audit cannot read them and prints a misleading
# "🚨 ALERT: capabilities are missing" banner that users mistake for the cause of
# unrelated issues (see issue #2454). The script is informational only, so we
# replace its body with a no-op while keeping the file in place for the runner.
RUN set -eux; \
for f in $(find / -type f -name '*capabilities*audit*.sh' 2>/dev/null); do \
printf '#!/usr/bin/env bash\n# Neutralised by the Home Assistant add-on: the required capabilities are\n# provided by the Supervisor but the upstream audit misreports them, which\n# alarmed users (issue #2454). This audit is informational only.\n:\n' > "$f"; \
chmod +x "$f"; \
done
# Bring in jq + gosu (and their libs). NO apk in final stage.
COPY --from=ha_tools /out/ /

View File

@@ -42,4 +42,4 @@ slug: netalertx
tmpfs: true
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "26.6.3"
version: "26.6.3-1"