fix(system_baseline): hardened sysctls are lost on reboot on Debian 13 #510
Notifications
Due Date
No due date set.
Blocks
#512 chore(release): 3.4.0
Mortis/Kamino
Reference: Mortis/Kamino#510
Reference in new issue
Block a user
What to build
Sysctl values set by
system_baselinesurvive a reboot on every supported release.Today the role persists them to
/etc/sysctl.conf. On Debian 13,systemd-sysctlno longer reads that file, so after a reboot the values return to the kernel defaults until the role runs again. Releases that still ship the/etc/sysctl.d/99-sysctl.confsymlink are not affected.Design:
/etc/sysctl.d, by default99-zz-system-baseline.conf. The name sorts after99-sysctl.confand the distribution's own files, so its values win.system_baseline_sysctl_file, sets the path.changedwhen a live value differs./etc/sysctl.confand leaves every other line alone.Acceptance criteria
changed; a second run reports no change.--checkreports the pending changes and writes nothing./etc/sysctl.conf; unrelated lines remain./etc/sysctl.confwithout a privileged container.log_martians, that a container may not runsystemd-sysctl, and what molecule does not cover.changedon the first run.Blocked by
None (can start immediately).