From patchwork Tue Jul 3 16:34:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 938806 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Kr1k28F4z9s3C for ; Wed, 4 Jul 2018 02:59:06 +1000 (AEST) Received: from localhost ([::1]:41774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faOdr-0004Wy-LI for incoming@patchwork.ozlabs.org; Tue, 03 Jul 2018 12:59:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faOG6-0007VK-W8 for qemu-devel@nongnu.org; Tue, 03 Jul 2018 12:34:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faOG3-0005Iw-2L for qemu-devel@nongnu.org; Tue, 03 Jul 2018 12:34:30 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:46828) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faOG2-0005IN-O0 for qemu-devel@nongnu.org; Tue, 03 Jul 2018 12:34:26 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MZyjz-1fq8eg3Qb9-00LpF2; Tue, 03 Jul 2018 18:34:14 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 3 Jul 2018 18:34:46 +0200 Message-Id: <20180703163451.16936-3-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703163451.16936-1-laurent@vivier.eu> References: <20180703163451.16936-1-laurent@vivier.eu> X-Provags-ID: V03:K1:NYL1GO2FIlWf+YHSddZ1O5OZwg+GFbixXcVhYXp5fExkSXNT51d Yv3NCg0Z5AfJGhs8e/fUsdwO2HAux5Pr64ZBJnL/ZWqStV3O9JMWAjkiEbBwR8TRfRPYUNi fPwH91SkHhuLr0IonGlI1roejakJvKOxAofNV1sIu7y9b9PkthNdGe4cAbBhQ4xBxfg3mkW Siy97Tysdc8Yc9GrvD/wg== X-UI-Out-Filterresults: notjunk:1; V01:K0:Hali3t45TlQ=:pXQZ0LWPweq2r3RaVAx5+H A9nCHKuyfK8PFvKTym4HU//3j6cOQ2lIwo4hMlKz7SAD0g2wDLI2mf2liN+pzALJiHYA7o9gE rKgw12WIjcKZytyVK20XjfacKiZqqP+3BELRYugnAeRrO6enVF7Wzea8vyXkVv+64el6tJ5i+ vlloRLS93iX/RyEfiP5t/sPXgs325d5fKr5Rpcz0jcu9IgWY2eIwfiuA3qFJMu9tLyG/OJvyQ kLHag+pZvIhHyvO/bTzJXyrDZsh6cHrdSeHSCVppqJFLDnH8Wsx1GImKirA6h7SUuQgrkhQOp 2zN5aAe1DetWSo8a5MWHqb1UA+Z4Ub4A9ocKBTkpeXdXQwp0NhenT95FofJ6h+zIlPVQIGW6q ApBUpOqvhS8SfoK6ADBfBi4cS+CXSM+NfYEhBhSq82q/3svvHb3pg5raaTOpN9Rdi6y4K0qoQ lS6nrNVZqWF6H2msM3kOiIkQ5F6NaEeQ5pYcdb7Bps+Pl2Nei2KKJ0gKlAnjTUEaoSQ3l4bHj 1Jik8jPDXZlCYuL2UyH7Wvse24GRezb/oosaWEo9p8NHYkCPjwsqRml6EzLp+5EyggaXr40TS jd04YtaIMXwa937fR20UC/xIfyE7wxiBRPVLwZdBqTRH1smTM2L5dnuby8js3we4kp+87GvWv kgCc0UjJX4i7c7NP74MDOEvqOfYgcBtlgY1n3GXG/33kr2cbTQWgA938qXwsxZBYeg84= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.134 Subject: [Qemu-devel] [PULL 2/7] qemu-binfmt-conf.sh: add persistent (F) flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Since kernel commit 948b701a607f (binfmt_misc: add persistent opened binary handler for containers) kernel allows to load the interpreter at the configuration time. In case of chroot, it allows to have the interpreter in the host root filesystem and not to copy it to the chroot filesystem. Signed-off-by: Laurent Vivier Message-Id: <20180627205317.10343-3-laurent@vivier.eu> --- scripts/qemu-binfmt-conf.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 9900554608..00c9c3aa16 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -161,6 +161,7 @@ usage() { cat <