Re: autopkgtest in a Sid schroot environment: how to set up subuid/subgid

Simon McVittie <[email protected]>
Newsgroups gmane.linux.debian.devel.general
Message-ID <[email protected]>
On Fri, 15 May 2026 at 08:40:41 +0200, Jerome BENOIT wrote:
>I have issues for running autopkgtest in Sid schroot environment.

Even if the uids/gids are available, running containers inside a chroot 
environment isn't usually possible, because the syscalls that are 
necessary to start a container also make it possible to escape from a 
chroot. chroots are not a strong security isolation mechanism, but the 
kernel tries not to make them any worse.

(A common symptom of this is that bwrap(1) from the bubblewrap package 
also can't run inside a chroot.)

I'd recommend running your autopkgtests outside the chroot, using 
autopkgtest-virt-unshare, autopkgtest-virt-podman or 
autopkgtest-virt-qemu (depending how much you trust the code under test 
and what capabilities it needs), with a sid tarball, container image or 
VM image (as appropriate). If the host system is Debian stable, 
autopkgtest can be installed from backports if newer features are needed.

     smcv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.