I investigated a curious networking problem in Debian's autopkgtest infrastructure along with Paul. We found that a recent (innocent) nftables update caused needrestart to trigger a nftables.service restart which
flushed volatile firewall rules installed into the kernel by
lxc. Specifically by lxc-net.service see /usr/libexec/lxc/lxc-net.
I think we should add an exception for nftables to $nrconf{override_rc} to avoid this problem since there doesn't seem to be any point in restarting
it for security purposes.
Thanks,
--Daniel
I wonder why needrestart selects this service at all. Could you provide the output of `needrestart -v` for this?
I think we should add an exception for nftables to $nrconf{override_rc} to avoid this problem since there doesn't seem to be any point in restarting it for security purposes.
ACK, IMHO it should be completely ignored and one should consider the same for iptables. But I still wonder why the service gets selected at all…
On Fri, May 02, 2025 at 11:37:04AM +0200, Daniel Gröber wrote:
Justification: Breaks unrelated software(IMO needrestart is not "unrelated" here.)
* makes unrelated software on the system (or the whole system)
break
Isn't this really a bug in nftables and maybe lxc? If restarting a
service wipes its configuration, maybe it should be fixed there.
On Fri, May 02, 2025 at 11:47:24AM +0200, Thomas Liske wrote:
I wonder why needrestart selects this service at all. Could you provide the output of `needrestart -v` for this?
Unfortunately we already restarted all the affected nodes. Do you want me
to try and recreate the problem in debvm?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 488 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:05:59 |
Calls: | 9,663 |
Calls today: | 5 |
Files: | 13,711 |
Messages: | 6,167,013 |
Posted today: | 2 |