Skip to content

Fix/confd hardening - #1659

Merged
mattiaswal merged 11 commits into
mainfrom
fix/confd-hardening
Sep 29, 2026
Merged

mattiaswal merged 11 commits into
mainfrom
fix/confd-hardening

Conversation

@mattiaswal

@mattiaswal mattiaswal commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Misc hardening, limit some input fields harshly.

fixes #1657
fixes #1655

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@mattiaswal
mattiaswal force-pushed the fix/confd-hardening branch 10 times, most recently from 8bc5f03 to 23478f2 Compare September 28, 2026 11:13
The name reaches iw.py and the hostapd path; the pattern allows every probed name, including device-tree unit addresses like sfp@9.
Its rc.d scripts and default files run as root.
Both are written into the dnsmasq dhcp-host line.
Both are written into quoted fields in syslog.conf.
The names are passed to mksshkey and used as file names.
Without it a syslog-only change took effect only after reboot.
Written into wpa_supplicant/hostapd config; AP/mesh passphrases now validated like station.
The name reaches the dagger shell scripts unquoted, so a metacharacter runs as root or leaves a config dagger cannot apply.

Fixes #1655
@mattiaswal
mattiaswal marked this pull request as ready for review September 28, 2026 11:19
@mattiaswal mattiaswal added the ci:main Build default defconfig, not minimal label Sep 28, 2026
Each node must list the other two as peers, not just any two.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
The value is written into the udhcpc command line of the generated
Finit service file, fixes #1657.
'get mesh_param' without a parameter only lists the names and exits 1,
so forwarding was never reported.

Signed-off-by: Mattias Walström <lazzer@gmail.com>

@troglobit troglobit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, very clean commits, easy to follow! 💪

@mattiaswal
mattiaswal merged commit 91207c8 into main Sep 29, 2026
8 of 9 checks passed
@mattiaswal
mattiaswal deleted the fix/confd-hardening branch September 29, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:main Build default defconfig, not minimal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No sanity check of input of dhcp option vendor-class Dagger crashes if interface names has invalid characters

2 participants