From patchwork Wed Jun 27 20:53:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 935715 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 41GFXm2pMGz9s19 for ; Thu, 28 Jun 2018 06:55:04 +1000 (AEST) Received: from localhost ([::1]:33161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYHSv-0004dl-Ql for incoming@patchwork.ozlabs.org; Wed, 27 Jun 2018 16:55:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYHSC-0004bt-4m for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:54:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYHS9-0004B6-3Z for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:54:16 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:46744) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYHS8-00049j-QF for qemu-devel@nongnu.org; Wed, 27 Jun 2018 16:54:13 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.167]) with ESMTPSA (Nemesis) id 0ME84Z-1fNV9C0Sml-00HLk6; Wed, 27 Jun 2018 22:53:37 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 27 Jun 2018 22:53:16 +0200 Message-Id: <20180627205317.10343-3-laurent@vivier.eu> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180627205317.10343-1-laurent@vivier.eu> References: <20180627205317.10343-1-laurent@vivier.eu> X-Provags-ID: V03:K1:sHGL4UtcTIej4qTI+87ngOGA4FX6Cm1CR8M47MylXr6dJQtHHRX mJ7yHS5Ckh/GNhyr+pa9IfEBTwBOV+qanqXMBOQFYI4wdK46Y3Cg7djYv8lFhNIxHrBlpFg V3qrDup6iJoBjvw6WP8vmrYuD4RY5EicP1fiD/wcc6fW7xct+cEKR0WR5bythfHMC7rd9+V Y8oIYuqlWuW2G1kfI57Og== X-UI-Out-Filterresults: notjunk:1; V01:K0:jN1X7PxMVDY=:RqQunpNS9AWOn+IRKE3rJL q4nuH4BnaVOJDiJPjF3yN7lBKDITGCwqwOZfxVG7KyqSAj4lrW0axg0GC8LrbvyMFhG9u84dE W2k9RDhTfwd9/0c1OL61O8zIAad6bTYysso7d3DFvkTRC882jtvqx5qapwCgJFfOFeTKYWlJK /ASsK1nTsXfojEOpo8TdNrkR+ghpT1bNkAsewbpOCFCl8vLY5KnH1tNed9BHpdTrXinhZ27qc FmaZshGFdM8aYVgYz96occFZCBCNhWaRLi20TZOHnpR76GGz3fqiPGcl3+JYMURQCdOxQhpI3 8vq0inadDIi8uaGIX2FUpHzWQ7CidytYHege1fcwEFNZU++IcxqKoUXxP5puf8wqfXokjwtYB GcP63D62tmSpZ0FUknyxCcpnPMtZVlqfnLt39A6pDWiWWJSuy4yZPxAXu6peFbSc/eoV5L6aO UbeDX2oVrMAVopBNL2nKZiRBS/U3D0m2T0JZUKVESndfRkRZO7qptWLehXjQInLL6+GtbeIbm 80eOI+5qvILTUHviIEnEpWNMywVlyrK3RDMQ0KADBrs5ckDCc/fjMRCpxAsWU2JQVbyTFoxxh KjOs+pbHSiG7GyudYu+BNYCVTuHL389tIdj6VkmP83ft4LZQg8bxPZvGYIJlBrnEw73OOm6/+ wKom/GE8sKLCbRoX+XyPBMDOINcG6E2tJUCJUBbZ+v9PVIrhcLUZ+tiG8GIocYF+RvTk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.187 Subject: [Qemu-devel] [PATCH 2/3] 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 --- 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 <