From patchwork Tue Apr 19 12:29:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 8879491 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 17CD4BF29F for ; Tue, 19 Apr 2016 12:29:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29D2120211 for ; Tue, 19 Apr 2016 12:29:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 482C020149 for ; Tue, 19 Apr 2016 12:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753398AbcDSM3m (ORCPT ); Tue, 19 Apr 2016 08:29:42 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:57448 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbcDSM3m (ORCPT ); Tue, 19 Apr 2016 08:29:42 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id E59488EE200; Tue, 19 Apr 2016 05:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1461068981; bh=xet+52WDBeV8vBDdsquZFj/+9cSV35G/Ml1dxKLb2Po=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Z+z+ss9wUJZSb9Nz/ETAHkrEBVClWyuuAmqcQHp3AgLcAC9FytiYOBKqzmZBLOoYh kYE9kaGASjO684pq6EKSrejOvfS+/RTcDXnX/36FSfHR/Q2KFiR9nMWeoDFLwhCts2 fOKlCcoyJny+di67SrGhrmBDmLHiRuO4PMC9qmDc= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tsU6I21PUz8p; Tue, 19 Apr 2016 05:29:41 -0700 (PDT) Received: from [172.20.14.161] (rrcs-70-60-101-195.midsouth.biz.rr.com [70.60.101.195]) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 384788EE0A4; Tue, 19 Apr 2016 05:29:41 -0700 (PDT) Message-ID: <1461068980.2435.6.camel@HansenPartnership.com> Subject: [Patch resend v3 3/3] binfmt_misc: add F option description to documentation From: James Bottomley To: containers@lists.linux-foundation.org, linux-fsdevel Cc: Al Viro , Jan Kara Date: Tue, 19 Apr 2016 08:29:40 -0400 In-Reply-To: <1461068670.2435.0.camel@HansenPartnership.com> References: <1461068670.2435.0.camel@HansenPartnership.com> X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: James Bottomley Acked-by: Serge Hallyn --- Documentation/binfmt_misc.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/binfmt_misc.txt b/Documentation/binfmt_misc.txt index 6b1de70..ec83bbc 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 + 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. There are some restrictions: