Your message dated Sun, 11 Jan 2015 12:03:27 +0000
with message-id <e1yahet-0003sg...@franck.debian.org>
and subject line Bug#775076: fixed in autopkgtest 3.9.1
has caused the Debian Bug report #775076,
regarding adt-setup-vm: sets force-unsafe-io for host dpkg, not guest
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
775076: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775076
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: autopkgtest
Version: 3.9
Severity: serious
Justification: Unwittingly sets dpkg force-unsafe-io on host
Tags: patch

Hi,

adt-setup-vm creates /etc/dpkg/dpkg.cfg.d/autopkgtest on the host,
instead of in the guest, because the path is missing the $root prefix
pointing to the directory where the guest's root is mounted.

This is very unfortunate, as that file sets force-unsafe-io for dpkg,
so this puts the host at risk to data loss.

Regards,
Christian
>From c8e5aac84d1de20028e85ec236a4a998938bd361 Mon Sep 17 00:00:00 2001
From: Christian Kastner <c...@kvr.at>
Date: Sun, 11 Jan 2015 01:28:36 +0100
Subject: adt-setup-vm: Modify guest's dpkg config, not host's

Add the missing $root prefix (the path to the directory where the guest's root
is mounted) when writing /etc/dpkg/dpkg.conf.d/autopkgtest, otherwise the
host's configuration is modified instead. As force-unsafe-io is being set, this
is very dangerous.
---
 tools/adt-setup-vm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/adt-setup-vm b/tools/adt-setup-vm
index cb0c9bb..b2f83d2 100755
--- a/tools/adt-setup-vm
+++ b/tools/adt-setup-vm
@@ -80,7 +80,7 @@ fi
 
 # go-faster apt/dpkg
 echo "Acquire::Languages \"none\";" > "$root"/etc/apt/apt.conf.d/90nolanguages
-echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/autopkgtest
+echo 'force-unsafe-io' > "$root"/etc/dpkg/dpkg.cfg.d/autopkgtest
 
 # auto-detect apt-cacher-ng
 if [ -z "${ADT_APT_PROXY:-}" ]; then
-- 
2.1.4


--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 3.9.1

We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 775...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <mp...@debian.org> (supplier of updated autopkgtest package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 11 Jan 2015 12:53:18 +0100
Source: autopkgtest
Binary: autopkgtest
Architecture: source all
Version: 3.9.1
Distribution: unstable
Urgency: medium
Maintainer: Autopkgtest team <autopkgtest-de...@lists.alioth.debian.org>
Changed-By: Martin Pitt <mp...@debian.org>
Description:
 autopkgtest - automatic as-installed testing for Debian packages
Closes: 775073 775075 775076 775092
Changes:
 autopkgtest (3.9.1) unstable; urgency=medium
 .
   [ Martin Pitt ]
   * Revert installation of ubuntu-device-flash in adt-run autopkgtest, it's
     too unstable (timeouts and grub errors due to qemu in qemu).
 .
   [ Christian Kastner ]
   * adt-run: Fix detection of dpkg-dev in the testbed. (Closes: #775073)
   * adt-setup-vm: Set umask to 0022 so that ordinary users in the testbed can
     read generated files. (Closes: #775075)
   * adt-setup-vm: Modify guest's dpkg config for enabling force-unsafe-io, not
     host's, when a root directory is specified as argument. (Closes: #775076)
   * adt-setup-vm: Make sure $proxy variable exists before using it. Fixes
     crash when apt is not configured to use a proxy. (Closes: #775092)
Checksums-Sha1:
 6ad10c33416c4cf5aae1560a2eb8351a2d6e91a1 1759 autopkgtest_3.9.1.dsc
 32ae5806274027c7aa60b10caef8db3de434e34f 158760 autopkgtest_3.9.1.tar.gz
 3240d192068e7155ee4ab71bd0fe1b717acb62c1 137278 autopkgtest_3.9.1_all.deb
Checksums-Sha256:
 4ea073995265f19e6bf890e67110ca618a952989c0113ca3c8a73b6b31bba129 1759 
autopkgtest_3.9.1.dsc
 bc20c6dc88c73704d20f519843a02cb7e57f4b6a2a52850a91e0c5fa2a176bd6 158760 
autopkgtest_3.9.1.tar.gz
 7ff1ffaa6a4340beea554b281051e826dfdafff6ff20f3ef47757f5df5e6462a 137278 
autopkgtest_3.9.1_all.deb
Files:
 8bab498e049ffe5b1464cde30d0191dd 1759 devel optional autopkgtest_3.9.1.dsc
 f979208184639dd60281bb4e70ae27b3 158760 devel optional autopkgtest_3.9.1.tar.gz
 2648c9be1e285cbb8150f37626c5be43 137278 devel optional 
autopkgtest_3.9.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUsmTyAAoJENFO8V2v4RNHsHcP/j0Oqk7AR84G9nIKgo1ZPRS7
PRsiNdidm9DlkRfNvztFadlZpwLKn5JUpMgss9p7PJDL23ruF3LtgIyUdExrFIYT
73eV4pP3LV9BDo1m63K6VpRaEo+BOwizBJDZNQzcc5Q0UuF9IhN508EMX6XPoMyA
A6jAhvTj1ZU9TO4R0VYG48jU5tHf5G7xGLOGLyEKSX4MlZ+ZujySn1sq218iQJxO
WWX5bNq3uULZULQODIxmHTs0YlWs28qbMFdtudZCcM6kTcPv67OKUi01VvqjvbzA
ZjHTxVHDFhtv7a52Irlmu77I0G6gikH8GAbGjd89rPt8qzkinrMdFIJPcZNX6UfL
K0V6l6RV5wZ6DoTnE5mBtTlScNy3XHnAO8+tYWl8cyli2ryuGTtpqpn1gNT7+9d0
a+X8x5of2jWldwvdfv/w/lvF/pcISre6w6Ox9tQNI2B6E4bod1l0cBGlrSLYqWga
hvVwQphHtTdYgtMulD7xie2Y1Ygw4tTkUQBlr55W1hp2hbAyzbh79lDwLm247uU6
b+X3T7PJrc6GaVXJOOYmU5uJukvmaeyJFjtccClwiikFpXI+qIB+z+N7iEI6puFY
9N3qEpB7Lgb7uuXyoLe7YYUQENzf3YZsnXTyx86ZQB1BcC29yTiqHbRJspmDfUg2
/oc0oSAhv71V71RUMvJK
=juPL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to