Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp773443imd; Thu, 1 Nov 2018 05:30:06 -0700 (PDT) X-Google-Smtp-Source: AJdET5fFGA5jEbSTKnlY4qgKO0ndGUNMqvTjl0f68uTOZckcq8W0IMGBI0TpmDtD6w6Q+M1sdyS5 X-Received: by 2002:a62:13d6:: with SMTP id 83-v6mr7444266pft.34.1541075406727; Thu, 01 Nov 2018 05:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541075406; cv=none; d=google.com; s=arc-20160816; b=EcIvOUyYUEMs1oIZjF0sWpS4PRFADrljH/GWTG63dIXJU4OXjHiYQZahxcghWdP3h1 nDL2f2j938UQhf/QF/XJJYFa7OJjVrVt29xmdvFjC/0bXidEjkp1JR+IGLPRpyxEw+Wl tvkGj06nBFeyGRWNwu2Ukk7SOjKtuakAg0L+8PO6/oDEYPkebYkkFoywbsyZgKEy2cQi rK3iXNqON2yHPvc6AT/l+91IPR6CacuINnmau5PdPjfcdPxb0RGYcerkNwH7eak+KKcS yuzNJ5WI4pyOyyB4ycXFdJ+ELk+jnFtoW14TXEBTIkjZ7MLiLdIBC5QNW74eUNkqsZ3u sfrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=z1HQmVKweuyKKRQ/iS8VKrfjLOjdaRbppaCIAw9/UOg=; b=lXFZsU3iRnUC498YlCyU9iIiQDGQ6FYyefVon13dghnur1hpy+8oYBdZnEBDAlkSTz KU8ugFKN7rthyKBfXsCShAW3In3ytlm7KP1a+rwLp9OBlzILJ2SBml3jaoFkXW6VrQAv 4YICRAR/zRq+VOsDPKTp2exrkH6+n4AXoyqjPppxxYjSFzzp+PdYg3N1lvD3259YjUu2 eVvQxEW7cqHEkAh6oGkDwPg4UqgAXMSnDl0HgarO17SKgfHDnTt9w3t8T2W0uvHNYcPd ZOce0vwOlOI8LU35VqR82jjIF9E/m5TuazrBYw6vopiTuCvzAQVMIC0i48Vn9j0+Vq9l 2ObQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si30921992plg.272.2018.11.01.05.29.47; Thu, 01 Nov 2018 05:30:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbeKAVcG (ORCPT + 99 others); Thu, 1 Nov 2018 17:32:06 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:58177 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbeKAVcF (ORCPT ); Thu, 1 Nov 2018 17:32:05 -0400 Received: from [192.168.100.1] ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MDykM-1gS3yF1bZU-009uVg; Thu, 01 Nov 2018 13:28:23 +0100 Received: from [192.168.100.1] ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MDykM-1gS3yF1bZU-009uVg; Thu, 01 Nov 2018 13:28:23 +0100 Subject: Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace To: Jann Horn , James Bottomley Cc: kernel list , Linux API , containers@lists.linux-foundation.org, dima@arista.com, Al Viro , linux-fsdevel@vger.kernel.org, "Eric W. Biederman" References: <20181010161430.11633-1-laurent@vivier.eu> <7ed6f823-547b-922d-59ff-aba9c4c3ab39@vivier.eu> <1541041159.4632.6.camel@HansenPartnership.com> From: Laurent Vivier Openpgp: preference=signencrypt Autocrypt: addr=laurent@vivier.eu; prefer-encrypt=mutual; keydata= xsFNBFYFJhkBEAC2me7w2+RizYOKZM+vZCx69GTewOwqzHrrHSG07MUAxJ6AY29/+HYf6EY2 WoeuLWDmXE7A3oJoIsRecD6BXHTb0OYS20lS608anr3B0xn5g0BX7es9Mw+hV/pL+63EOCVm SUVTEQwbGQN62guOKnJJJfphbbv82glIC/Ei4Ky8BwZkUuXd7d5NFJKC9/GDrbWdj75cDNQx UZ9XXbXEKY9MHX83Uy7JFoiFDMOVHn55HnncflUncO0zDzY7CxFeQFwYRbsCXOUL9yBtqLer Ky8/yjBskIlNrp0uQSt9LMoMsdSjYLYhvk1StsNPg74+s4u0Q6z45+l8RAsgLw5OLtTa+ePM JyS7OIGNYxAX6eZk1+91a6tnqfyPcMbduxyBaYXn94HUG162BeuyBkbNoIDkB7pCByed1A7q q9/FbuTDwgVGVLYthYSfTtN0Y60OgNkWCMtFwKxRaXt1WFA5ceqinN/XkgA+vf2Ch72zBkJL RBIhfOPFv5f2Hkkj0MvsUXpOWaOjatiu0fpPo6Hw14UEpywke1zN4NKubApQOlNKZZC4hu6/ 8pv2t4HRi7s0K88jQYBRPObjrN5+owtI51xMaYzvPitHQ2053LmgsOdN9EKOqZeHAYG2SmRW LOxYWKX14YkZI5j/TXfKlTpwSMvXho+efN4kgFvFmP6WT+tPnwARAQABzSNMYXVyZW50IFZp dmllciA8bHZpdmllckByZWRoYXQuY29tPsLBeAQTAQIAIgUCVgVQgAIbAwYLCQgHAwIGFQgC CQoLBBYCAwECHgECF4AACgkQ8ww4vT8vvjwpgg//fSGy0Rs/t8cPFuzoY1cex4limJQfReLr SJXCANg9NOWy/bFK5wunj+h/RCFxIFhZcyXveurkBwYikDPUrBoBRoOJY/BHK0i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HCzPgVDjk4viP brV9NwRkmaOxVvye0vctJeWvJ6KA7NoAURplIGCqkCRwg0MmLrfoZnK/gRqVJ/f6adhU1oo6 z4p2/z3PemA0C0ANatgHgBb90cd16AUxpdEQmOCmdNnNJF/3Zt3inzF+NFzHoM5Vwq6rc1JP jfC3oqRLJzqAEHBDjQFlqNR3IFCIAo4SYQRBdAHBCzkM4rWyRhuVABEBAAHCwV8EGAECAAkF AlYFJhkCGwwACgkQ8ww4vT8vvjwg9w//VQrcnVg3TsjEybxDEUBm8dBmnKqcnTBFmxN5FFtI WlEuY8+YMiWRykd8Ln9RJ/98/ghABHz9TN8TRo2b6WimV64FmlVn17Ri6FgFU3xNt9TTEChq AcNg88eYryKsYpFwegGpwUlaUaaGh1m9OrTzcQy+klVfZWaVJ9Nw0keoGRGb8j4XjVpL8+2x OhXKrM1fzzb8JtAuSbuzZSQPDwQEI5CKKxp7zf76J21YeRrEW4WDznPyVcDTa+tz++q2S/Bp P4W98bXCBIuQgs2m+OflERv5c3Ojldp04/S4NEjXEYRWdiCxN7ca5iPml5gLtuvhJMSy36gl U6IW9kn30IWuSoBpTkgV7rLUEhh9Ms82VWW/h2TxL8enfx40PrfbDtWwqRID3WY8jLrjKfTd R3LW8BnUDNkG+c4FzvvGUs8AvuqxxyHbXAfDx9o/jXfPHVRmJVhSmd+hC3mcQ+4iX5bBPBPM oDqSoLt5w9GoQQ6gDVP2ZjTWqwSRMLzNr37rJjZ1pt0DCMMTbiYIUcrhX8eveCJtY7NGWNyx FCRkhxRuGcpwPmRVDwOl39MB3iTsRighiMnijkbLXiKoJ5CDVvX5yicNqYJPKh5MFXN1bvsB kmYiStMRbrD0HoY1kx5/VozBtc70OU0EB8Wrv9hZD+Ofp0T3KOr1RUHvCZoLURfFhSQ= Message-ID: Date: Thu, 1 Nov 2018 13:28:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:izDvVZ4WMX8T9SW7WIglGjWdvbGt3LvV4I5gOsyd6pxJqmB6+8X wmuR+Y9nB6hTAjk4rts+8Y32fe2YO99+S7XStlWPhOfJTu9DXb2RhD3KycrW0niVFtzonua zYJkzN9BbHgD4CYz/8iymC0scIJiLz1DxdlhhWw6Mdg/jpzHxe+mSgeUYV3WvpZDV6lb7// gOgHg+AAtmbD5HZi175ZQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:Mrd9qB4skKQ=:eOlKmn2sRb/ZzxMFHPl5u1 hdA1DiSjT28fu3w3sgAATyhulNc/pCNoPewDBbgT3OdGWc0NcDgNywURKLSBb4Odyu7PM4/HB fiCYd2zbROhrmZRuoUn+hnR2dqOLiTxrPXRX5zKwgWKC64XEdfg5H2Zo5dPAizWvKxn3NE5rW cViL1w6XlKWovqkUyefKl9d7l6/m0cpqxWzGFU0oXQkvPr2Mw4Oz3SHyfZxPJphGe1aq4GdTg UqFGgzdj9e830woeAieJ173Ys3V/bqas21pLEiEI70eVhftwlglouCQ62nzsmQHorJy76Tjir o5rDP7Rv5MATAbwlWkp4Y+PSk8I9PflRsSogy0bpAUZTLRlYpA1Yd3Efrtc9HFGgs4oRVwhB5 8xVwzvIih1g7ZEshVZeg1aUgzlW5w7B9bipUmzUzQ10oNg27lAUSXJmi79vxsDSeR9G7TXQfz Ncoz2aoLMoML2fx8cLQFGreRJF7HhwKrTdqI2aSoBNJHIhW/Egr0nqG+jcjxyRFbmLoy/PjuO 2Dbk/syuWRUI5XdoOMQ5Z8efVsNI9lJLmBv4vz6e0fQQkYyj75frQJz2GkLvbc/7p76mETp6A Hsg0JRlyKGNjU9vfZfbanhNUMer4YQ7o7JOvtEQDpbBIfHlwevs/DSSSnE7UXWbB4/HUWFJJC vO+N1OX6sLQLaS5+RWaz76VdAqKaHDeyR7HAdCAHcqiRrKG3/ZLy1j8NBxbOtHUawomBfMswK qC2O+gCw1/yATfwz Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2018 04:51, Jann Horn wrote: > On Thu, Nov 1, 2018 at 3:59 AM James Bottomley > wrote: >> >> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier wrote: >>> Hi, >>> >>> Any comment on this last version? >>> >>> Any chance to be merged? >> >> I've got a use case for this: I went to one of the Graphene talks in >> Edinburgh and it struck me that we seem to keep reinventing the type of >> sandboxing that qemu-user already does. However if you want to do an >> x86 on x86 sandbox, you can't currently use the binfmt_misc mechanism >> because that has you running *every* binary on the system emulated. >> Doing it per user namespace fixes this problem and allows us to at >> least cut down on all the pointless duplication. > > Waaaaaait. What? qemu-user does not do "sandboxing". qemu-user makes > your code slower and *LESS* secure. As far as I know, qemu-user is > only intended for purposes like development and testing. > I think the idea here is not to run qemu, but to use an interpreter (something like gVisor) into a container to control the binaries execution inside the container without using this interpreter on the host itself (container and host shares the same binfmt_misc magic/mask). Thanks, Laurent