bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45198: 28.0.50; Sandbox mode


From: João Távora
Subject: bug#45198: 28.0.50; Sandbox mode
Date: Tue, 13 Sep 2022 13:53:50 +0100



On Tue, Sep 13, 2022, 13:37 <mattiase@acm.org> wrote:
11 sep. 2022 kl. 13.28 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> This was a year ago, but it looks like none of these patches were
> applied?

Probably means they weren't very good to begin with.

Heh. That's a bit harsh, but also true more often than not.

> I think having a sandbox mode would certainly be good in principle.

Same here, but I know how perilous it is to design interfaces without a concrete and obviously useful application from the start so let's be careful.

I agree. Here's an obviously useful application in my humble opinion: to turn on Elisp's Flymake checker by default. 

To do that, we must ensure that this checker, which starts an emacs inferior process to byte-compile Lisp code, is guaranteed not to cause unintended side-effects.

This inferior Emacs macro-expands macro calls and thus and runs code: there's no other way to compile Lisp code. It must thus not be allowed to do "unsandboxy" things like writing to the file system or network. Probably also not starting other processes. But probably it should be allowed to cons lists and intern symbols inside its address space.

João

reply via email to

[Prev in Thread] Current Thread [Next in Thread]