From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: unsafep - Malicious code detector Date: Sun, 31 Mar 2002 22:16:50 -0700 (MST) Sender: emacs-devel-admin@gnu.org Message-ID: <200204010516.g315Gom11017@aztec.santafe.edu> References: <3CA5E22D.FF89331E@comcast.net> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1017638307 21337 127.0.0.1 (1 Apr 2002 05:18:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2002 05:18:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ruD5-0005Y2-00 for ; Mon, 01 Apr 2002 07:18:27 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16ruO9-0001le-00 for ; Mon, 01 Apr 2002 07:29:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ruCi-0003sP-00; Mon, 01 Apr 2002 00:18:04 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ruBX-0003eV-00; Mon, 01 Apr 2002 00:16:52 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g315Goa27334; Sun, 31 Mar 2002 22:16:50 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g315Gom11017; Sun, 31 Mar 2002 22:16:50 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: jyavner@comcast.net In-Reply-To: <3CA5E22D.FF89331E@comcast.net> (message from Jonathan Yavner on Sat, 30 Mar 2002 11:05:02 -0500) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2296 This could be very useful, but I think it needs to overcome some of these limitations: ;; This is a simplistic implementation that does not allow any access to ;; files or buffers or global variables. Why not allow read-access to files, buffers and global variables? ;; 2. It's a symbol with the `side-effect-free' property, defined by the ;; byte compiler or user. We extend the meaning of this property: ;; value nil indicates that the function or macro has side effects ;; but is otherwise safe. I think it would be cleaner to use a different property for that purpose. ;; 3. It's a member of list `unsafep-disable', so the user says it's safe. How about renaming that to `safe-function'. ;; A lexical binding is unsafe if its symbol: Emacs Lisp does not have lexical bindings, so what does that really refer to? ;; A target variable is unsafe if: What is a "target variable"?