- Package:
- autopkgtest
- Source:
- autopkgtest
- Submitter:
- Bastien Roucaries
- Date:
- 2025-12-04 11:43:02 UTC
- Severity:
- normal
hi, I will like for testing dhcp a restriction that block external network when package are installed for safety purpose rouca
Hi Bastien, The right package is autopkgtest. 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). Paul
Le jeudi 4 décembre 2025, 11:10:59 heure normale d’Europe centrale Paul Gevers a écrit : because i believe testing network service like dhcp on salsaCI is not a good idea. Maybe canonical way to remove network should be documented May be it is a documentation problem
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.