From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Sat, 17 Apr 2021 19:22:31 +0200 Message-ID: <077448DE-3E4E-4821-8F5C-5CA62BF217E5@acm.org> References: <5818DFAA-3A9C-4335-BAAF-1227A02C290A@acm.org> <19511709-E42B-4ABD-9823-39EA08A79B1F@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 45198@debbugs.gnu.org, Stefan Kangas , Stefan Monnier , Alan Third To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 19:23:39 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 1lXofS-0003Kp-K8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 19:23:38 +0200 Original-Received: from localhost ([::1]:40406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXofP-0007cA-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 13:23:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXoev-0007bz-Jg for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:23:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXoes-0001Jm-Ky for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:23:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXoes-00062V-Gr for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 17:23: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.161868016023172 (code B ref 45198); Sat, 17 Apr 2021 17:23:02 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 17 Apr 2021 17:22:40 +0000 Original-Received: from localhost ([127.0.0.1]:44438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXoeV-00061f-UW for submit@debbugs.gnu.org; Sat, 17 Apr 2021 13:22:40 -0400 Original-Received: from mail203c50.megamailservers.eu ([91.136.10.213]:58476 helo=mail193c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXoeS-00061W-VC for 45198@debbugs.gnu.org; Sat, 17 Apr 2021 13:22:38 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1618680155; bh=Yda9rMhayL6bAwl+6URONmhJ3B3N+xfmY9YsgJ+8rVQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=LJAQGz5o+BFq/daR8DEe1wJxg9J3fNsxyyaP6BP0nx+6QAQiFQX5PLyRSqMQcKomd GfAi1zDP1QyYOD0HgSgy28JEq05Sa7FRrbOwficFI6POHB1OoWF/VhgnRCFzVSSr4H sT2t96eToPUEMA8leYtiSEBHbJZtgFHA79FeL9dA= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail193c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 13HHMW0R023013; Sat, 17 Apr 2021 17:22:33 +0000 In-Reply-To: <19511709-E42B-4ABD-9823-39EA08A79B1F@gmail.com> X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F17.607B195B.001E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=PqLtkDE3 c=1 sm=1 tr=0 a=von4qPfY+hyqc0zmWf0tYQ==:117 a=von4qPfY+hyqc0zmWf0tYQ==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=pGLkceISAAAA:8 a=x48ymFGV-5Z2z8zwfxgA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE 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:204234 Archived-At: 17 apr. 2021 kl. 17.44 skrev Philipp : > I think it would be better to first implement the mechanism and not = the high-level `sandbox-enter' function Sorry, there's a misunderstanding here -- it's just a name (and not = meant to be a high-level function). I've given it a more = platform-specific name. It is not meant to be a general interface to = which any thing else has to conform. Whether it should use --darwin-sandbox instead of --eval = "(darwin-sandbox '(\"DIR\"))" is not very important at this point. It's = not intended for general use in any case (and the doc strings now make = this clear). In particular, we do not benefit from artificially restricting the macOS = sandboxing until we know what is needed. Nothing like a Lisp interface = for experimentation! > As we gain more experience with these sandboxing mechanisms, we can = look at relaxing these restrictions, but I think initially we should be = conservative. I take the opposite view, but our goals are the same and we will = converge. > Is there any documentation you could refer to, even only an unofficial = one? Well, I dug up some web links that will be gone tomorrow... > This needs to somehow document what PROFILE is. You are right; elaborated. >> +Already open descriptors can be used freely. */) >=20 > What does this mean? Emacs doesn't really expose file descriptors to = users. It sort of does (in the form of processes), but there could also be = descriptors not directly exposed. It would be incomplete not to mention = the possibility. It looks like the seccomp filter generator uses the = same policy, treating descriptors as capabilities. > Missing CHECK_STRING (profile). Thanks! Fixed.