From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75017: 31.0.50; Untrusted user lisp files Date: Sun, 22 Dec 2024 20:41:31 +0200 Message-ID: <86ikrb5zms.fsf@gnu.org> References: <87bjx43gp7.fsf@pub.pink> <86h66w6yam.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34397"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, jm@pub.pink, monnier@iro.umontreal.ca, 75017@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 19:42:28 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tPQuJ-0008n6-Lo for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 19:42:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPQty-00065I-9C; Sun, 22 Dec 2024 13:42:06 -0500 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 1tPQtv-00064w-3G for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 13:42:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPQtu-0004Lw-R6 for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 13:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=/AbHSF6MtRJFbXXLRTss7I9XLsCsGP/8AEbnQ2wAEp4=; b=WlTqDpwFR/7c/IAhHBLVu9PVBWAykkJDbqJOYBq2MDpPzzzE22EowfpQA4QRCPslZMGWvccIeerLK8DcxAiH2cjsn7TJqg63BVRL6tdeWL9w0LoJTX5ZolgPp+pgBAGilLJFV0qc5dkTf+zna9lQew1CqHKnaCB1ZETUJRUAYW8m0s2HOVfQEdPW1W/rMja3Kn55QysK8W2lyFdVXZ0VhM22aFkhwiJOOSYjsEFuSKL8d/4eW4axLEZ3VPs8eKuvVnDuWWqZfBaGYqu5bU5JL23mTlvnXblJbdkHF77GeDb53sa2yE8ntAulsdxyNDhrNk7/tS/g5+sMQgCb5K8qfg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPQtu-0002pZ-LX for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 13:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75017 X-GNU-PR-Package: emacs Original-Received: via spool by 75017-submit@debbugs.gnu.org id=B75017.173489291110855 (code B ref 75017); Sun, 22 Dec 2024 18:42:02 +0000 Original-Received: (at 75017) by debbugs.gnu.org; 22 Dec 2024 18:41:51 +0000 Original-Received: from localhost ([127.0.0.1]:51882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPQtj-0002p0-Eh for submit@debbugs.gnu.org; Sun, 22 Dec 2024 13:41:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPQtg-0002ol-QQ for 75017@debbugs.gnu.org; Sun, 22 Dec 2024 13:41:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPQtb-0004HX-K3; Sun, 22 Dec 2024 13:41:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/AbHSF6MtRJFbXXLRTss7I9XLsCsGP/8AEbnQ2wAEp4=; b=EUt3X1pZSQi+ tGfRoIU3Bt4W+yCI3vy5onYlPBySFt5XuoGYJopDH4d2BO5h79hd8TVqGTT9L7pjAmsAadsjB/2Sf 9oXpcEsSPf/uNNchUCMT1grK3UMsJrV791oIEv2SnghWjsH/lSUV+94EEk2iXBAEYp/6o2U38BfI8 xIDYvJNrJg6e+I0zVU+0cYzG4b1kJLeOg3eh39k1rcoHDvx6cXF5zW2j6iJrioJx4x/4q08UppkA/ ClDRNL/wtupWXQdhf5ErkT0IHzjP6WzfS/IqqmGb79iii/K6CWBvZKpS/wkToFEYGKwqup9eBX4tK D/E0YjTCcGFJ71Pk051Waw==; In-Reply-To: (message from Stefan Kangas on Sun, 22 Dec 2024 17:36:15 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297615 Archived-At: > From: Stefan Kangas > Date: Sun, 22 Dec 2024 17:36:15 +0000 > Cc: jm@pub.pink, 75017@debbugs.gnu.org, acorallo@gnu.org > > Eli Zaretskii writes: > > >> From: Stefan Monnier > >> Cc: john muhl , 75017@debbugs.gnu.org, Eli Zaretskii > >> , Andrea Corallo > >> Date: Sat, 21 Dec 2024 22:16:05 -0500 > >> > >> > Maybe we should install something like the below? > >> > >> Fine by me, but I think this should be added via a new > >> `trusted-content-function(s)` and added buffer-locally only in > >> elisp-mode buffers. > > > > Sorry, but this is slippery slope. For starters, no one said that > > site-run-file is installed by a sysadmin -- that is only so on certain > > systems. For example, MS-Windows is generally not in that category. > > It doesn't matter who can edit it. `site-run-file` is already trusted, > since it is loaded at run-time before `user-init-file`. It is loaded if it is there. On my system, there's no such file, and I don't expect to have it. So if such a file somehow materializes there, I want to know, pronto.