On 2026-12-04 18:40:42 -0500, Ryan Scodari wrote:
> 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.

This was also my case.

Note that this file was no longer read directly, but via the
/etc/sysctl.d/99-sysctl.conf symlink to this file from systemd.

On my bookworm machine:

lrwxrwxrwx 1 root root 14 2026-04-27 21:48:55 /etc/sysctl.d/99-sysctl.conf -> 
../sysctl.conf

> 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.

This first part of the breakage is that systemd *unconditionally*
removes the above symlink:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077184

> 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.

If systemd has already removed the /etc/sysctl.d/99-sysctl.conf
symlink, procps has no way to know that /etc/sysctl.conf was
still used (for instance, the admin may have removed this symlink
earlier in the past). In such a case, migrating any config from
this file would be incorrect. See

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110930#15

In order to allow a proper migration, systemd shouldn't have
removed a non-dangling symlink.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to