[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Evaluation with function whitelist
From: |
Dr. Arne Babenhauserheide |
Subject: |
Re: Evaluation with function whitelist |
Date: |
Sat, 15 Jul 2023 12:40:36 +0200 |
User-agent: |
mu4e 1.10.3; emacs 29.0.90 |
Hi Mike,
Mike Gran <spk121@yahoo.com> writes:
>>good choice. Basically, I want the user to be able to open a repl shell,
>>but by default it should have *no* bindings except the ones I whitelisted.
> Define a module in a file with the "#:pure" option so that it starts off
> empty.
…
> Using the real repl is probably a no-go, since it has meta-commands
> like ",m" that would let the user ignore your whitelist.
>
> I didn't really test this, but it should be mostly correct.
Sandboxed Evaluation may also be interesting for this:
https://www.gnu.org/software/guile/manual/html_node/Sandboxed-Evaluation.html
(to prevent users from blocking the process)
If you want a long term view for the most powerful approach that
preserves allow-listing, see Spritely Goblins:
https://spritely.institute/files/docs/guile-goblins/latest/A-simple-greeter.html
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
signature.asc
Description: PGP signature
- Evaluation with function whitelist, Ryan Raymond, 2023/07/14
- Re: Evaluation with function whitelist, Mike Gran, 2023/07/15
- Re: Evaluation with function whitelist,
Dr. Arne Babenhauserheide <=
- Re: Evaluation with function whitelist, Thompson, David, 2023/07/15
- Re: Evaluation with function whitelist, Ryan Raymond, 2023/07/15
- Re: Evaluation with function whitelist, Dr. Arne Babenhauserheide, 2023/07/15
- Re: Evaluation with function whitelist, Mike Gran, 2023/07/15
- Re: Evaluation with function whitelist, Dr. Arne Babenhauserheide, 2023/07/16