From: Ryan Raymond <rjraymond@oakland.edu>
To: guile-user@gnu.org
Subject: Evaluation with function whitelist
Date: Fri, 14 Jul 2023 22:03:59 -0500 [thread overview]
Message-ID: <CAGvJ-HSrJFt2FCjdKBcvtf6ud6hdOis3Bx1VWE6UmCOEBaNxrg@mail.gmail.com> (raw)
Hello, all.
I've been on this for almost a month now. I'm working on a project for my
work, where we need a console to control automation. I wanted to use an
existing language instead of developing one, and I thought Guile would be a
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.
For example, (getcwd) should fail, even (if #t #t #f) should say that "if"
isn't defined. Then I can add in only the procedures I want (plus a couple
automation commands). Does anyone know how to do this? I'm at my wit's end.
I was thinking I could get a list of all the language bindings and un-bind
them in one fell swoop, but I haven't found a way to do that.
Thanks,
Ryan
next reply other threads:[~2023-07-15 3:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-15 3:03 Ryan Raymond [this message]
2023-07-15 5:45 ` Evaluation with function whitelist Mike Gran
2023-07-15 10:40 ` Dr. Arne Babenhauserheide
2023-07-15 14:09 ` Thompson, David
2023-07-15 20:05 ` Ryan Raymond
2023-07-15 21:01 ` Dr. Arne Babenhauserheide
2023-07-16 2:09 ` Mike Gran
2023-07-16 9:31 ` Dr. Arne Babenhauserheide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGvJ-HSrJFt2FCjdKBcvtf6ud6hdOis3Bx1VWE6UmCOEBaNxrg@mail.gmail.com \
--to=rjraymond@oakland.edu \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).