[Bug 790971] Re: binfmt-support doesn't honor flags: in /usr/share/binfmts/foo

Colin Watson cjwatson at canonical.com
Sat Jul 9 23:19:46 UTC 2011


Are you sure this ever worked?  I certainly never documented this
syntax; the trailing colon is out of line with the rest of the syntax;
and it partially duplicates the 'credentials' field added by Loïc to
handle the 'C' flag.

I would recommend deleting the 'flags:' line and using the documented
'credentials yes' line instead.  If you need the 'O' flag, I'd be happy
to add support for 'open-binary yes'.

** Also affects: qemu-linaro (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: binfmt-support (Ubuntu)
       Status: New => Triaged

** Changed in: binfmt-support (Ubuntu)
   Importance: Undecided => Medium

** Changed in: qemu-linaro (Ubuntu)
       Status: New => Triaged

** Changed in: qemu-linaro (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binfmt-support in Ubuntu.
https://bugs.launchpad.net/bugs/790971

Title:
  binfmt-support doesn't honor flags: in /usr/share/binfmts/foo

Status in “binfmt-support” package in Ubuntu:
  Triaged
Status in “qemu-linaro” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: binfmt-support

  qemu-user-static ships a number of binfmt handlers under
  /usr/share/binfmts which are registered in the postinst using 'update-
  binfmts --import qemu-$target'.  In natty, the resulting registrations
  under /var/lib/binfmts (and in /proc/sys/fs/binfmt_misc) don't respect
  the value of the flags: field set in the source file.  As a result,
  foreign-arch suid binaries can't be run under qemu because the kernel
  has been told to use the suid bit from the non-setuid qemu
  interpreter, instead of the one from the target binary.

  Please fix update-binfmts to respect the flags: field, which I think
  worked in previous versions.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: binfmt-support 2.0.3
  ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
  Uname: Linux 2.6.38-7-generic x86_64
  Architecture: amd64
  Date: Tue May 31 16:21:10 2011
  InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: binfmt-support
  UpgradeStatus: Upgraded to natty on 2011-03-24 (68 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binfmt-support/+bug/790971/+subscriptions




More information about the foundations-bugs mailing list