Hi,
I'd like to add another data point to this bug, because in my case the
silent removal of /etc/sysctl.conf had security consequences, not just
functional ones.
I upgraded a bookworm server to trixie (procps 2:4.0.2-3 -> 2:4.0.4-9).
The server has a public-facing interface. Its /etc/sysctl.conf, unchanged
for years, contained:
net.ipv4.ip_forward=1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
During the upgrade the file was renamed to /etc/sysctl.conf.dpkg-bak.
The only indication of this was, at most, a single line in the dpkg
output among thousands of others; there was no NEWS.Debian entry for
apt-listchanges to show and no debconf note. After the post-upgrade
reboot:
- IPv4 forwarding was off. That broke things immediately, so I noticed
and restored it in /etc/sysctl.d.
- IPv6 was silently re-enabled. The public interface picked up a
global IPv6 address from router advertisements, and every service
on the machine listening on all addresses (sshd, a web admin panel,
etc.) became reachable over IPv6. The machine has no IPv6 packet
filtering, precisely because IPv6 was disabled. It stayed in that
state for over two days before I found it. As far as I can tell
from the logs nothing connected, but that was luck, not design.
Admins disable IPv6 in sysctl.conf because they don't filter it, so
quietly turning it back on is close to the worst failure mode this
change could have.
So I'd like to ask for two things:
1. A NEWS.Debian entry (debian/procps.NEWS) for the removal, so that
apt-listchanges shows it before the upgrade proceeds. This is still
useful: many bookworm systems have not been upgraded yet.
2. Ideally, a check in the maintainer scripts. When the old
/etc/sysctl.conf contains any non-comment, non-blank lines, either
migrate them (e.g. to /etc/sysctl.d/99-sysctl.conf) or show a
debconf warning that those settings will no longer be applied at
boot. Renaming a file with active settings to .dpkg-bak means
settings that used to take effect at boot silently stop applying,
and some of them, like disable_ipv6, are security controls.
I understand the file was believed to be a default config file, and
for most systems it probably was. But the systems where it wasn't are
exactly the ones where losing it hurts.
Thanks for maintaining procps.