Package: qemu-user-static
Version: 1:2.8+dfsg-6
Severity: wishlist

Dear Maintainer,

Please consider enabling the "F" flag in the binfmt entries which this package
adds. From https://www.kernel.org/doc/html/v4.12/admin-guide/binfmt-misc.html:

F - fix binary

    The usual behaviour of binfmt_misc is to spawn the binary lazily when the
    misc format file is invoked. However, this doesn``t work very well in the 
face
    of mount namespaces and changeroots, so the F mode opens the binary as soon 
as
    the emulation is installed and uses the opened image to spawn the emulator,
    meaning it is always available once installed, regardless of how the
    environment changes.

This is useful because it avoids the need to bind mount the qemu-user-static
binaries into the container/chroot/whatever.

The documentation entry appears to have been added in Linux v4.8-rc1 so I
pressume the feature was present at some point before then and is in any case
available in the 4.9 kernel used by Stretch, so enabling this in the Buster
onwards versions of this package ought to be reasonable I think.

I'm not sure if this also applies to the qemu-user-binfmt package, that's
dynamically linked and I confess I'm not sure how that works WRT chroots and
such.

Thanks,
Ian.

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable-updates'), (500, 'unstable'), 
(500, 'testing'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

qemu-user-static depends on no packages.

Versions of packages qemu-user-static recommends:
ii  binfmt-support  2.1.6-2

Versions of packages qemu-user-static suggests:
ii  sudo  1.8.19p1-2.1

-- no debconf information

Reply via email to