From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from casper.infradead.org ([85.118.1.10]:50515 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbcB2Fcc (ORCPT ); Mon, 29 Feb 2016 00:32:32 -0500 Subject: Re: [Patch v2 3/3] binfmt_misc: add F option description to documentation To: James Bottomley , containers@lists.linux-foundation.org, linux-fsdevel References: <1456428890.2377.2.camel@HansenPartnership.com> <1456429136.2377.7.camel@HansenPartnership.com> Cc: Al Viro From: Randy Dunlap Message-ID: <56D3D7EA.2090602@infradead.org> Date: Sun, 28 Feb 2016 21:32:26 -0800 MIME-Version: 1.0 In-Reply-To: <1456429136.2377.7.camel@HansenPartnership.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 02/25/16 11:38, James Bottomley wrote: > Signed-off-by: James Bottomley > --- > Documentation/binfmt_misc.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/binfmt_misc.txt b/Documentation/binfmt_misc.txt > index 6b1de70..a22eb69 100644 > --- a/Documentation/binfmt_misc.txt > +++ b/Documentation/binfmt_misc.txt > @@ -66,6 +66,13 @@ Here is what the fields mean: > This feature should be used with care as the interpreter > will run with root permissions when a setuid binary owned by root > is run with binfmt_misc. > + '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 > + emultation is installed and uses the opened image to spawn the emulation > + emulator, meaning it is always available once installed, > + regardless of how the environment changes. > > > There are some restrictions: > -- ~Randy