[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45198: 28.0.50; Sandbox mode
From: |
Stefan Monnier |
Subject: |
bug#45198: 28.0.50; Sandbox mode |
Date: |
Sat, 12 Dec 2020 16:06:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> static void
>> redisplay_internal (void)
>> {
>> + /* Not sure if it's important to avoid redisplay inside a sandbox,
>> + but it seems safer to avoid risking introducing security holes via
>> + image libraries and such. */
>> + ensure_no_sandbox ();
>
> You cannot usefully call error from redisplay.
Hmm... but this is at the entrance to redisplay, so I though it should
still be safe at that point. If it's a problem we can replace the above
with
if (emacs_is_sandboxed)
return;
-- Stefan
bug#45198: 28.0.50; Sandbox mode, Mattias Engdegård, 2020/12/13
bug#45198: 28.0.50; Sandbox mode, Philipp Stephani, 2020/12/13