From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Sun, 13 Dec 2020 12:57:25 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Bastien , 45198@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 18:58:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koVdL-0005Tr-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 18:58:11 +0100 Original-Received: from localhost ([::1]:52382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koVdK-00075D-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 12:58:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koVdD-00073W-1M for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 12:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koVdC-0005k3-PS for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 12:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koVdC-0002Qv-Or for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 12:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Dec 2020 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45198 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45198-submit@debbugs.gnu.org id=B45198.16078822549313 (code B ref 45198); Sun, 13 Dec 2020 17:58:02 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 13 Dec 2020 17:57:34 +0000 Original-Received: from localhost ([127.0.0.1]:50056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koVck-0002Q8-KX for submit@debbugs.gnu.org; Sun, 13 Dec 2020 12:57:34 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koVcj-0002Px-Ia for 45198@debbugs.gnu.org; Sun, 13 Dec 2020 12:57:33 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3AE8480625; Sun, 13 Dec 2020 12:57:28 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DF7808033C; Sun, 13 Dec 2020 12:57:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1607882246; bh=dCv+MUQWh7xnVsUU0jVfIP+QBCBZW/40jZ8hVV+4NE0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Fzo8n9064wliUTVh43OVxo1AZe4OXzkjEc4Vik9PinY7LwUe9K189jXFxNIU4/gYX AJvJq4CD0JqhhcbvTDTUJPHYCoIU5WWcX3XKtqdI68A+XWVtDjt0iBl3XVVNVPUl9H 1Hj03MUQuec3mWrCzBqzOMvHVAKLc0HE/t8fju6h9symzbjiEbXNi70AdjyaQgMxZC mj7VV/hj7V+ciesnrzEGA2y5riZlhEhW79QB82X+efXLGMHLmOB1ltStK5LsT0khbG NTA1QLKjJv5N4PFQhARS1ia+NCRZyyB8247I0W73lcs1wHmdYWclpctVhKLEItM3ut zpZASFM42CybA== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9DB53120392; Sun, 13 Dec 2020 12:57:26 -0500 (EST) In-Reply-To: (Philipp Stephani's message of "Sun, 13 Dec 2020 18:04:52 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195984 Archived-At: > I don't think such an approach can work. It assumes perfect knowledge > about anything that might be problematic, and also assumes that all > future changes to Emacs take the sandbox question into account. > Especially the latter point seems unrealistic, and this looks like a > security incident waiting to happen. That's true for the implementation side. How 'bout the ELisp API side? > Sandboxing is good, but it should happen using an allowlist and > established technology, such as firejail/bubblewrap/Google sandboxed > API/... I'm all for it, *but*: - I suspect we'll still want to use the extra "manual" checks I put in my code (so as to get clean ELisp errors when bumping against the walls of the sandbox, and because of the added in-depth security). - This will need someone else doing the implementation. - The ELisp-level API should not depend on the specific implementation too much, since none of those established technologies sound like things that'll still be maintained 10 years from now. - We need to have this in Emacs-28 if we want to enable flymake-mode in ELisp by default in Emacs-28 (which I sure would like to do). - I'd like to have this yesterday in order to build the Info files of GNU&NonGNU ELPA packages from their .org documentation without having to store the Info in the Git branch nor having to maintain some LXC container just for that. Stefan