[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#817236: marked as done (schroot: no access to pseudo-terminals in new chroots)



Your message dated Fri, 10 Mar 2017 12:34:07 +0000
with message-id <E1cmJkF-000HVi-Lz@fasolo.debian.org>
and subject line Bug#817236: fixed in debootstrap 1.0.89
has caused the Debian Bug report #817236,
regarding schroot: no access to pseudo-terminals in new chroots
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 owner@bugs.debian.org
immediately.)


-- 
817236: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817236
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: schroot
Version: 1.6.10-2
Severity: important

debootstrap recently replaced the /dev/ptmx device node with a symlink
/dev/ptmx -> pts/ptmx[1]. This changed the default permissions from
world-writable (0666) for /dev/ptmx to no-access (0000) in chroots[2].

This causes build failures as, for example, openmpi's mpirun relies on
access to pseudo-terminals.

As chroots used by sbuild/buildd do not need access to the host's
pseudo-terminals, schroot could just mount a private devpts instance
with world-writable ptmx in the chroot: for this replace

  /dev/pts        /dev/pts        none    rw,bind         0       0

with

  /dev/pts /dev/pts devpts rw,newinstance,ptmxmode=0666 0 0

in the sbuild profile's fstab. To accommodate old chroots that still
have a /dev/ptmx device node, an additional bind mount

  ${chroot}/dev/pts/ptmx   /dev/ptmx   none   rw,bind 0 0

is needed to make sure only the devpts' ptmx device is used. I don't
think this can be done via the profile's fstab, but only via a setup
script?

See also [3].

Ansgar

  [1] https://packages.qa.debian.org/d/debootstrap/news/20160124T094920Z.html
  [2] The host still has a world-writable /dev/ptmx via devtmpfs.
  [3] https://www.kernel.org/doc/Documentation/filesystems/devpts.txt

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (100, 'buildd-unstable'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages schroot depends on:
ii  libboost-filesystem1.58.0       1.58.0+dfsg-5+b1
ii  libboost-iostreams1.58.0        1.58.0+dfsg-5+b1
ii  libboost-program-options1.58.0  1.58.0+dfsg-5+b1
ii  libboost-system1.58.0           1.58.0+dfsg-5+b1
ii  libc6                           2.21-9
ii  libgcc1                         1:5.3.1-10
ii  libpam0g                        1.1.8-3.2
ii  libstdc++6                      5.3.1-10
ii  libuuid1                        2.27.1-3
ii  schroot-common                  1.6.10-2

schroot recommends no packages.

Versions of packages schroot suggests:
ii  btrfs-tools       4.4-1
ii  debootstrap       1.0.79
ii  lvm2              2.02.142-1+b1
pn  qemu-user-static  <none>
ii  unionfs-fuse      1.0-1

-- Configuration Files:
/etc/schroot/sbuild/fstab changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.89

We believe that the bug you reported is fixed in the latest version of
debootstrap, 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 817236@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (supplier of updated debootstrap 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 ftpmaster@ftp-master.debian.org)


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

Format: 1.8
Date: Fri, 10 Mar 2017 13:10:56 +0100
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source
Version: 1.0.89
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Description:
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 817236
Changes:
 debootstrap (1.0.89) unstable; urgency=medium
 .
   [ Simon McVittie ]
   * Instead of creating a /dev/ptmx → pts/ptmx symlink unconditionally,
     try mknod with “c 5 2” parameters first, and fall back to a symlink
     only if it fails. This should help with various tools like pbuilder,
     sbuild, and schroot (Closes: #817236).
   * Add autopkgtest support to test various scenarios.
 .
   [ Cyril Brulebois ]
   * Uniformize COMPONENTS/USE_COMPONENTS handling.
Checksums-Sha1:
 facb7cf3be33eb7bb788d8769205ba8e79614137 1800 debootstrap_1.0.89.dsc
 17688a4b9e56a91d416d3ce2c75c432e63e54b51 69020 debootstrap_1.0.89.tar.gz
Checksums-Sha256:
 9e10bddc0ce96aa3c26228116446b1d6e7e87fac653f630b575183c669ef384a 1800 debootstrap_1.0.89.dsc
 3fde1e34eae8744d802ff4f4ba5464b8c8829c0afe9d394c8a536cfdaca23885 69020 debootstrap_1.0.89.tar.gz
Files:
 81d989f41061819e87ecda733c057012 1800 admin extra debootstrap_1.0.89.dsc
 cd1d713543ad9238a1431f83c5622f68 69020 admin extra debootstrap_1.0.89.tar.gz

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

iQIcBAEBCAAGBQJYwpgNAAoJEP+RSvDCs1Ugbd0P/RhR6+IIqjR/MrmF3HxKnZGc
Zso1wUX+SeHYno4reolRKyx2wNIlNDGiILwtjvlI6Y5oiigSkL5pJWtmfgFijBbT
n1pjKzyAOy26UOLyi1sGezRt2b3IrTwWNxhv75x9WZytnsBasa1gtIFkrHq0ZW+T
mUiV5h0UjQ6Z7mPNVt19k7vEdDFAcd8U/zCL72gm5oDMaDgClQcRzLeU0IQyroZy
h+SLWS9zn0Tz7LPsBQn5f07VbEu7TVvYAi3/5FTD3Ip/1/FlCwq8EbltCs5cnQPk
4ICmqWrapGnoZnAlpKveSDWSx3xAxhfDsXtI0L6tWcFXXpfVaYtgIm9wmP//dNcs
tKtPb9Zm1Blv+M9uk3WTak3FZQgs+Z9PP8/DKMz1ZwJOjJPb4Ef7bA+NEQWqF1Je
uXn4MumRKjHgqD1MeMd1j+Vemd0FDzFyWPW7Aeij5G30G++CySzOE5O3YwGDKAQw
BMAr2rvyY2Wf4ELNi8d8atQgU0zeA9fuzRlkfo11vnedv/TedG8Ivn5/rcsWopI+
nHpIeaYTLo/UZif1IvPliKrbxeULWFumcG5HTK+Yno6h235zSWhdkC45F9sJL5B/
guy4Vysc+qR/VlP4efdoZrpoXeb7dg/q+Pprk0UoHEiNb21d5m6LVoPZCkki1LFq
QGiJTGS7oWEv5HbEdKOK
=x4YR
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: