On Thu, Dec 04, 2025 at 11:10:59AM +0100, Paul Gevers wrote:
> Control: reassign -1 autopkgtest
> Control: severity -1 wishlist
> 
> Hi Bastien,
> 
> On 12/4/25 10:54, Bastien Roucaries wrote:
> > Source: debci
> 
> The right package is autopkgtest.
> 
> > I will like for testing dhcp a restriction that block external network when
> > package are installed for safety purpose
> 
> 
> Inside the testbed, you can do what you want (I guess you'd need the right
> set of other restrictions to have the proper privileges). Why don't you
> prevent network while testing inside the test?
> 
> I guess autopkgtest could in principle do this, but it seems to be a niche
> feature. I'm also not sure if it should be a restriction (it's more the
> other way around).

Agreed. If you use the `needs-root` restriction, you can then do
whatever you want inside the testbed, including disabling the network.
The code needs to be written carefully to be robust, but in principle
there is nothing preventing you from doing that.

Attachment: signature.asc
Description: PGP signature

Reply via email to