From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74879: 30.0.92; trusted-content-p and trusted-files cannot be used for non-file buffers Date: Mon, 16 Dec 2024 13:39:25 +0100 Message-ID: References: <87ed29ixu8.fsf@daniel-mendler.de> <87msgw94fz.fsf@daniel-mendler.de> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: mail@daniel-mendler.de, monnier@iro.umontreal.ca To: 74879@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 13:40:29 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 1tNAOj-0003jl-5C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 13:40:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNAOU-0002ET-70; Mon, 16 Dec 2024 07:40:15 -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 1tNAOJ-00029x-30 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 07:40:04 -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 1tNAOI-0003E7-Pd for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 07:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=IuuMD9rcUQb/SY1uEDY85PadSEn3tRXPk+d4ddNxPF0=; b=vF10pNzuS0/t2JBWsWjJC7SuOy71lzOHjvdCZFCtPlNs2DSol7Z7qTuGd3RDEVCH/dHuhQE4OAYfWzEjd57Sr4qNNdBmq6W8JCX6b+X5nsh1LC99Hf44QkAGBf2PyWIw1f5c0RrIUnxdHRECsF3WDNhqTCb/k/T0BQFYO0NelqkJ1zLyrJp8tRzp0rhnMjlXkBwQomA7za44JX0Qptvc9SgurfsgX0mMNHF0bfJR/6UJWmioDPT20NwLrwFJTXlqn1pF/VwIAgmWsDorCP+ZCSpmtUh35G1vXIz5V6501rg9ol7qRGmq2bqvv6x4XbVZvvXi+xlnoVIxjPDYLN1VGA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNAOI-00075b-FF for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 07:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74879 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Daniel Mendler , 74879@debbugs.gnu.org, Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.173435277527203 (code B ref -1); Mon, 16 Dec 2024 12:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Dec 2024 12:39:35 +0000 Original-Received: from localhost ([127.0.0.1]:53912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNANq-00074g-P0 for submit@debbugs.gnu.org; Mon, 16 Dec 2024 07:39:35 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:45836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNANm-00074P-HZ for submit@debbugs.gnu.org; Mon, 16 Dec 2024 07:39:31 -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 1tNANm-0001s0-9P for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 07:39:30 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNANk-0002yy-OD for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 07:39:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1734352767; bh=3+OQNyjRc4icBACQQWj3VuuPXhqY8cyD3cJOpNooeII=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=E/N/J9vegk/81JbJigT46VkRG81jjDGJ4rzU5ETQvMw3JILZ9cYIOk1XSM2QZOuew RM8U01q7fy+eA3qsdcVkjStTMSBEvK5toS3kgAFLioDIFgxTO3Bnh8f+Nkw6pzK4un 7IawMNQLsorX/6hwOy3Wmhy/tAiSd9Y6w1J3CjpE2i/Vw/zKf4maixhFDyS5YQ/n/V 1ReHM4PurjmSldqqg5Xq/90DqLD1uK2vHO9yGOre2Y3W0xN9xyQqli6/sZsuRylK/b cnYzD+pHRTtFJPm8NScS/QtqBj220AofrrfdpP3gzQq8sU6pQKEI2dW9v9QXMUk1lO ieSXTlKVO7gdw== In-Reply-To: (Eshel Yaron's message of "Mon, 16 Dec 2024 08:52:42 +0100") Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297168 Archived-At: Eshel Yaron writes: > Hi, > > Thank you for your work on this mitigation! > > Stefan Monnier writes: > >> [ BTW, I just renamed the var to `trusted-content`. ] > > Note that now we have both trusted-content and untrusted-content, both > security-related but with somewhat different meanings... It might be > worth consolidating the two somehow to avoid confusion. Sorry, I now realize that they are already consolidated in the sense trusted-content-p considers both variables. org-latex-preview in org.el still checks for untrusted-content directly though, I wonder if it'd make sense for it to check for trusted-content-p instead. Eshel