From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ryan Raymond Newsgroups: gmane.lisp.guile.user Subject: Evaluation with function whitelist Date: Fri, 14 Jul 2023 22:03:59 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26379"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jul 15 05:05:07 2023 Return-path: Envelope-to: guile-user@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 1qKVal-0006XV-4t for guile-user@m.gmane-mx.org; Sat, 15 Jul 2023 05:05:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKVa5-0005Im-CP; Fri, 14 Jul 2023 23:04:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKVa3-0005IJ-K8 for guile-user@gnu.org; Fri, 14 Jul 2023 23:04:23 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKVa2-0002Yl-7I for guile-user@gnu.org; Fri, 14 Jul 2023 23:04:23 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-55ae2075990so1503270a12.0 for ; Fri, 14 Jul 2023 20:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oakland.edu; s=google; t=1689390251; x=1691982251; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=C7s45sBTxfOEtSImXyQko/aI2qd3mkrgpFPXR4OltS8=; b=ZL8FzVF45ALyCZ8d+wr+suCJnRjEzQD5oMK8doKoV9XKCBIDE/6/uf6WcIxnGRzuYe V7lx1SfKU59vBy1DE8PPXDusCVodp3ZF7C5nsHafxGZLkCmw4fc7U0P6qYuXrHOCax7c 7Ug+OsVe2WfASgyk1jl1OiCJeDg7pWMBdoC9cT2FnAlszYfHK54dewH/e2oVkh/SZYUi IXVh4bN4I5gqmmBDaCn6QOg5+UKr13hws2qLjRwqWmKz/PNeSUpdg8A5nkMTi4AWmKPY qo4aMIJlU1SxJGQRYZQjOc8NyfrhpC7TXvFwPPajbMJVf3SOZ1qPB/G5wCXKUoOEqB+X 1uWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689390251; x=1691982251; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=C7s45sBTxfOEtSImXyQko/aI2qd3mkrgpFPXR4OltS8=; b=mHpA/ucH8gRM49Q+RGw8SdSgGh/Uc2T8C8K//iF3qnl9hf2OVBVEfstMFojd51yR0q jydIWx7yIbBpJdvHGstTn2TZ/9vo3N7m6ztCCaDTY8i//0YNmBA7fLbwGAi8poCLiFMb FGjB3/2cmYjTSInwIGAYtR32mhgDNNM5M3RLXKmTKjEJmc6Ui75FyIpxNnFeK51DfnlT nZTlo8rSBA/zUH1zWE/hvBGAgigoLWDw0Gj9EF4Z0Py8LUtAoPBccWhUtOEK9PP8CIEy Vg2UwU1J51Kb2k+J4Q0HLf50PP8PvcUHMAJ4AaFturLS9u30RBRm7bHE8PC3VgTrrgS6 PDKQ== X-Gm-Message-State: ABy/qLZM35Z1XQDHueD6stmeWZcoQKcKaMfJ6xsywBZNJBhV59S4yIJu t/QWhPhMkYphBuJRbQ8j5udAPgLL8/mUtRY3NGfutxk0dt1TypBaWlI= X-Google-Smtp-Source: APBJJlETRvNJzYAkqPHWytzekx/7QaaeZvzZuiixfPDtkSM+YMhqFcYzYeHCKRX/h51Hx6VqUwYNkZPveGRQoTPUiOc= X-Received: by 2002:a17:90b:38cf:b0:256:857f:823d with SMTP id nn15-20020a17090b38cf00b00256857f823dmr4191207pjb.48.1689390250862; Fri, 14 Jul 2023 20:04:10 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=rjraymond@oakland.edu; helo=mail-pg1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19091 Archived-At: 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