On Sat, Oct 19, 2024 at 08:19:49PM +0200, Paul Gevers wrote:
> > > > linux-sysctl-defaults should be pulled in as a Recommends (assuming you
> > > > haven't overriden that), which should then apply the new setting.
> > > As Recommends of what?
> > 
> > The iputils-ping binary package
> 
> autopkgtest doesn't pull in Recommends by default. If Recommends are needed
> for the test, they need to be pulled in explicitly.

Right, by my point was more that this sysctl value will be set in a
default Debian installation by virtue of Recommends being installed by
default.  For this reason, I think it would be reasonable to consider
either installing it (and applying its settings) directly in autopkgtest
and/or the debci infrastructure, or simply setting the sysctl directly.

Because the linux-sysctl-defaults package currently does not actually
take any steps to apply the provided sysctl values, simply installing
the additional package won't actually help.  Packages can use sysctl
from procps and use that, but easiest way to deal with this on a
per-package basis probably is to have the test declare 'needs-sudo' and
run:

echo "0 1073741823" | sudo tee /proc/sys/net/ipv4/ping_group_range

from the test script.  That feels like a bit arcane of a thing to
require random packages to do just to be able to invoke ping in their
tests.

noah

Reply via email to