Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470997

Re: [PATCH] binfmt_misc: allow selecting the interpreter based on xattr keywords

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] binfmt_misc: allow selecting the interpreter based on xattr keywords
Date 2016-08-26 23:20 +0200
Message-ID <sawHD-3UR-1@gated-at.bofh.it> (permalink)
References <sa5xM-3jP-29@gated-at.bofh.it> <sa5xM-3jP-27@gated-at.bofh.it> <saqLU-8tm-27@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


> A non-security use case would be to run the binary (without 
> modification) with a different ELF interpreter (assuming this allows to 
> override binfmt_elf, but self-sandboxing would need that as well).  This 
> would make it easier to use older or newer libcs for select binaries on 
> the system.  Right now, one has to write wrappers for that, and the 
> explicit dynamic linker invocation is not completely transparent to the 
> application.

If it gets in I'll be using it to label CP/M COM files so that they can
be auto-run nicely when crossbuilding stuff in part with the original
tools but a modern build environment 8)

Sandboxing is an obvious use but there are more bizarre ones such as
marking a file system image to get auto-run under a virtual machine or
make containers fire up as if they were commands.

It's effectively also the long missing but much needed "this document
belongs to this app" meta data that MacOS and the like have had for
decades.

Alan

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-08-25 18:20 +0200
  Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords Florian Weimer <fweimer@redhat.com> - 2016-08-26 17:00 +0200
    Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords Carlos O'Donell <carlos@redhat.com> - 2016-08-26 20:00 +0200
      Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-08-26 23:50 +0200
    Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-08-26 23:20 +0200
      Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-08-26 23:30 +0200
        Re: [PATCH] binfmt_misc: allow selecting the interpreter based on  xattr keywords One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-08-27 14:00 +0200

csiph-web