From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#75017: 31.0.50; Untrusted user lisp files Date: Sun, 22 Dec 2024 17:36:15 +0000 Message-ID: References: <87bjx43gp7.fsf@pub.pink> <86h66w6yam.fsf@gnu.org> 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="1949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, jm@pub.pink, 75017@debbugs.gnu.org To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 22 18:38:24 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 1tPPuK-0000L3-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Dec 2024 18:38:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPPu0-0001W9-3R; Sun, 22 Dec 2024 12:38:04 -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 1tPPty-0001Vk-OB for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 12:38:02 -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 1tPPty-00033T-G1 for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 12:38:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=/RIpXEpsECSEBP+QAfAd36lIRF3/dI2uFRPwHHrN9Hw=; b=F/O2gu9Ep46n7sU8o8ZVs0UbDopblGdp25zqcjZr1rwdm7aSoPVM1LPS5pNtxtqZWHnNI2s2JHRva6l+H/bRiBNgTTxqc71JhArnKhckwdMhgXR7iGtyeZYCWKmliLysfx+LRXeYYgEAP6FiHtQggrl8jasAVpt2EPPBJOsJdO5pl61emw/NJ9pveWkYWNc5B26gHG9WuTjhV+gGykSKVN8SBJfB2j7GHqPyASiDzAQy2Akmn2qoNzt13y/f4lGzBoGU0QvVV0hdo16Le0RKaRU9uNxP5rXMVnQzoWATkJuHOuMk73btfnTo0XjAG3HmX4dPFxZ0izoJS758Vc7JVg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPPtx-0008OG-W6 for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2024 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2024 17:38:01 +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.173488903932186 (code B ref 75017); Sun, 22 Dec 2024 17:38:01 +0000 Original-Received: (at 75017) by debbugs.gnu.org; 22 Dec 2024 17:37:19 +0000 Original-Received: from localhost ([127.0.0.1]:51791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPPtG-0008N4-NU for submit@debbugs.gnu.org; Sun, 22 Dec 2024 12:37:19 -0500 Original-Received: from mail-ej1-f44.google.com ([209.85.218.44]:54781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPPtE-0008Mv-Mv for 75017@debbugs.gnu.org; Sun, 22 Dec 2024 12:37:17 -0500 Original-Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-aa6a92f863cso339812966b.1 for <75017@debbugs.gnu.org>; Sun, 22 Dec 2024 09:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734888976; x=1735493776; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=/RIpXEpsECSEBP+QAfAd36lIRF3/dI2uFRPwHHrN9Hw=; b=Y+n6eelCxYkK0Dy3CiDpMHMggOyMw19x/mxURgBFBnUB7FO8wiU7XcmC4SWRQiknpC mdsb4j5wj7y8n8B3qVWCxWkHeLhB4dU+OujzfcBqAYq5qhSSfEsLHp+URqFUFfjhOU/9 fq0zW9Xi1OzUFJuGDOqUkZkPJ8OenUAJYTUdhSJUS5oS3uo08IVsHRdavor9DtIlwf46 9TFjZLJfZUn58Yt+FloAbSkuMRH4S/AylWtM1MmUqzGCfn4Dg1zXWNeNARwW+LWiCFzE JB9pnKlSdIYRlPZXlmvTd6zurPj/F3UWkCPl3dnzXJQhdvX75WCZXg4uOrQVt8Xz7Eux IGBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734888976; x=1735493776; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/RIpXEpsECSEBP+QAfAd36lIRF3/dI2uFRPwHHrN9Hw=; b=pO/JWxnkLtJLzqoWTk83z+Jt+RgZ5j6CTjY0YLcQrxOmSvIqeSfBKCWZv7+OouZf47 7f4O5EnuGoBJl5dLteVmmCTVXBL12vifC0PlTI6Z1JPjAZ+AoOEDKhVWH0GjqfB06KsY xk70OKBFqdXNS6wkSlA8844pKq232fqGqq0vxenryBjoo35XImO3teKGn+sc7dMomD0v xVlRIuXNSz0rxLkEpRFD1d/OQuE6BPf62cIyBzdecFtB+YglQ2YTJG3luPKT0nRvppDM KvCZQ48S9L7hkqnfGIf39fwbzqZeHxB62s9eTlHC48Q5GfxuYXOO3Kle+orffcC+8IQY SuEQ== X-Forwarded-Encrypted: i=1; AJvYcCV5FCHqGHPaVJHSne6lUyJHiswPur/Fnf8DNolZz4sEbmfXsE2CxIZw08b2gsyHp2G9gykKng==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzlQ0cIujECGSbeSCl9pdFOV3WXXdjM6tLPz9yygWEEBHpaNSMV dU4KouNu1jgK9hROZISKuPWd9SGuQqviof7jzoWOaMs+tHf4RhK17oEbOnHsDxmbG2tPVMyRPxB ElY7lcrQB7R2OKWf/UafbmWfivi0= X-Gm-Gg: ASbGnctzuVSRV5CWqjnMydgNo0Jqz4pW9L8ldrWH7Wbh+/OtG8lz3CSw6bRJyULA0dN XFFIbs3Xw+CLdL47xObjIcMAWn4H37omjkCxohCS6 X-Google-Smtp-Source: AGHT+IEpIgFvlEzk81l65h8BG79hD7eprq/3mP7JIJvQDPtQTGvheOl5A8SYw2iXbRe5e58T57mPaKeQQggTbZlNlug= X-Received: by 2002:a17:907:94c1:b0:aa6:8096:2048 with SMTP id a640c23a62f3a-aac2ad825e0mr906538866b.17.1734888975529; Sun, 22 Dec 2024 09:36:15 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 22 Dec 2024 17:36:15 +0000 In-Reply-To: <86h66w6yam.fsf@gnu.org> 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:297611 Archived-At: 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`.