From d43358e86559265d8619b2a2e6d55f435691ce9d Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 28 Sep 2023 10:53:53 +0200 Subject: autopkgtest: contain possible damage by killpg When mmdebstrap fails, it kills its child processes by killing its process group. This is harmless in many cases. For instance, when run from an interactive shell, the shell creates a process group. When run with user namespaces as non-root, not being root limits the possible damage. But when run as root from autopkgtest, mmdebstrap runs in the initial process group and takes down the entire lxc container. Using setsid, we can isolate the container from this killpg call. --- debian/tests/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/tests/control') diff --git a/debian/tests/control b/debian/tests/control index 9888f95..4b92b4b 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,4 +1,4 @@ -Test-Command: ./tests/create-and-run.sh $(dpkg --print-architecture) "" +Test-Command: setsid ./tests/create-and-run.sh $(dpkg --print-architecture) "" Depends: debian-archive-keyring, debvm, file, openssh-client, seabios [ppc64el] Restrictions: allow-stderr, needs-internet, needs-root # Skip running on armel and armhf as the emulation is too slow there to actually work. -- cgit v1.2.3