From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Newsgroups: gmane.emacs.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Sat, 17 Apr 2021 18:10:14 +0200 Message-ID: <9A5BCDF3-6543-46C0-AB56-2311392FC549@gmail.com> References: <5818DFAA-3A9C-4335-BAAF-1227A02C290A@acm.org> <19511709-E42B-4ABD-9823-39EA08A79B1F@gmail.com> <83v98kvr7y.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, mattiase@acm.org, 45198@debbugs.gnu.org, stefankangas@gmail.com, joaotavora@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 18:11:12 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 1lXnXL-0006TB-QQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 18:11:11 +0200 Original-Received: from localhost ([::1]:34356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXnXK-0001Eq-TB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 12:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXnXD-0001E1-3l for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 12:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXnXC-0000k9-Rp for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXnXC-00047J-Kp for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 12:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 16:11: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.161867582315759 (code B ref 45198); Sat, 17 Apr 2021 16:11:02 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 17 Apr 2021 16:10:23 +0000 Original-Received: from localhost ([127.0.0.1]:44197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXnWZ-000467-83 for submit@debbugs.gnu.org; Sat, 17 Apr 2021 12:10:23 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:33280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXnWY-00045r-1j for 45198@debbugs.gnu.org; Sat, 17 Apr 2021 12:10:22 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id g5so39776288ejx.0 for <45198@debbugs.gnu.org>; Sat, 17 Apr 2021 09:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=P1ViWqoAyC6pIhsid45kN/g90qsav9nCKWQDtKu4P5g=; b=RdKkaPoHVkcaOC+XHyj1dqLFfptghTNJvnKcvtlRTRVIfXklR/cRClA3Bxy3VCU6Zn 6TS6H9jUM4Ek3GHoagHpJO2t8OKyFJTqitC23fI3pKgySD//nWQROxd/05diepMPLNTw Hz1/rEwk72yROVNBGYxGOtyqX2x81d//pdIkGwxpdcoEg9xQS7382YyAbEx5OznlWyw0 cwqShaT7wTFD8qOUBeQbhmEopXgLL19gk8WmBKzDRvMHAkij6pMoYtrDQR7uDme1H1bR mYh6+EsOZdH5It/30sssC7xhIb5EkCEnkB8UfcrumjuUWQ1GjrmiJedhegog1YTfBwFN foYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=P1ViWqoAyC6pIhsid45kN/g90qsav9nCKWQDtKu4P5g=; b=k/nFR9xmc6lIPg+BZ1M6m8HRpsoEMA4UrH7Ck+OAGm7/WxtfAprJZET6oI2ItWcheJ 1w5U/ze1Reg2sjlP8u/IjfzK89GQ6w5SZH3oZ3mXJjG8X2bjQvqL1FPVCFbMjuiulD5I JWEd2u+7gRv264OOQlEOFeZmQw6Wakz4W6wbyoTYWX+L8r0YrUwxsFMOTuPqp2zXC3w2 pJedHB1br5OXYulnovsWpn6CPlIy2/7Mugjn1jHvbecIdnJ//48/U7rx3cHP5ukxIckB d4tNrELsO3FHg2YsZjOufRYGm0/d4HlKme1IqoCRmcT1Q1p48YtkIEFeYaj1uEESk70L P1ag== X-Gm-Message-State: AOAM531+HNQ4fUoEW55U+IGQ9lUL6TGmxUispx/W2N9qaRmMGn89FnAO +cad1v8Tjel9s3hodScaSx8= X-Google-Smtp-Source: ABdhPJyhzNyOJJgrkob1nfQki3+vm1pN7YwBvXnOcnDej3J0YS03pKPrx+cmRNhUeDlFkXLJadHx5g== X-Received: by 2002:a17:907:62a7:: with SMTP id nd39mr13870441ejc.510.1618675816178; Sat, 17 Apr 2021 09:10:16 -0700 (PDT) Original-Received: from philipps-macbook-pro.fritz.box (p57aafcaa.dip0.t-ipconnect.de. [87.170.252.170]) by smtp.gmail.com with ESMTPSA id ws15sm6665316ejb.38.2021.04.17.09.10.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Apr 2021 09:10:15 -0700 (PDT) In-Reply-To: <83v98kvr7y.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) 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:204222 Archived-At: > Am 17.04.2021 um 17:57 schrieb Eli Zaretskii : >=20 >> From: Philipp >> Date: Sat, 17 Apr 2021 17:44:06 +0200 >> Cc: Jo=C3=A3o T=C3=A1vora , >> 45198@debbugs.gnu.org, Stefan Kangas , >> Stefan Monnier , Alan Third = >>=20 >>> It works and can be pushed right away but it would be nice to have a = place to use it, for validation and for tuning the interface. Any plans = for that? >>>=20 >>=20 >> I think it would be better to first implement the mechanism and not = the high-level `sandbox-enter' function (I think that one needs a bit = more discussion), and implement the mechanism as a command-line flag. >=20 > IMO, if we have no reasonably clear idea how this will be used on the > high level, I have a relatively clear idea how I want the high-level interface to = look like: (cl-defun start-sandbox (function &key readable-directories = stdout-buffer) ...) (defun wait-for-sandbox (sandbox) ...) where start-sandbox returns an opaque sandbox object running FUNCTION = that wait-for-sandbox can wait for. That should be generic enough that = it's extensible and implementable on several platforms, and doesn't lock = us into specific implementation choices. If that's OK with everyone, then I'm happy to write the code for it.=