From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Fri, 17 Sep 2021 09:20:50 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3894"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Third , 45198@debbugs.gnu.org, Stefan Kangas , Philipp , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Eli Zaretskii To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 17 15:22:15 2021 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 1mRDok-0000kV-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 15:22:14 +0200 Original-Received: from localhost ([::1]:45256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRDoh-00010y-JM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 09:22:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRDoY-0000xK-Mb for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 09:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRDoY-0002U2-EC for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 09:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRDoX-00036y-SM for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 09:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Sep 2021 13:22:01 +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.163188486111870 (code B ref 45198); Fri, 17 Sep 2021 13:22:01 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 17 Sep 2021 13:21:01 +0000 Original-Received: from localhost ([127.0.0.1]:58742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRDnZ-00035K-88 for submit@debbugs.gnu.org; Fri, 17 Sep 2021 09:21:01 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:65109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRDnV-00034u-Tr for 45198@debbugs.gnu.org; Fri, 17 Sep 2021 09:20:59 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6B4B1440BD5; Fri, 17 Sep 2021 09:20:52 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2EE68440B14; Fri, 17 Sep 2021 09:20:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1631884851; bh=msCJXSYa2G5tB/EVrFQiBdGg2p481JGMdCcwdZtoFOo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Jn5sqo/UeR3V+p1OFn/sQ70V8UjbzK2rYaRuxdgMcBWZJia2o5CwhTm444h2uqTFU CJiMsUnI+YV6DTof0Iz2xXRuX6r53DJpmf9dTjhjJGn7vOmXQ9Vq57L9oD7s+c8GdX XfyEd0UFpsFSenW8rzK+1E7sfmQxI9kfhtLAQqzUU0lFyGwULuPO7gioOjqsZcSDFb pQah7kvQPULN3rXveeaKs1BwBzbjTrN7dCTHh/EHCUxQrVOye4dQrjxbKcBg7cfvMb 1cKideJxx5/FBILuCT4NUkN9/NPIWTFgKwezJITFu/qjXVgvjy7/Itd9FJx7ZlgLFY K2O8zjHwYY8hQ== Original-Received: from pastel (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E1873120320; Fri, 17 Sep 2021 09:20:50 -0400 (EDT) In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Fri, 17 Sep 2021 14:13:48 +0200") 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:214537 Archived-At: > It's basically versions of `call-process` and `make-process` specialised for > running batch-mode Emacs in a sandbox. The attached patch is a straw man > proposal but that should serve as a starting point for agreement on what the > interface might look like. For `elpa-admin.el` we need a writable directory as well. We also need the ability to run sub-processes. Your `bwrap` implementation for GNU/Linux should allow that, AFAICT, but I can't tell if `darwin-sandbox-enter` also allows it. Stefan