From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#74879: 30.0.92; trusted-content-p and trusted-files cannot be used for non-file buffers Date: Sun, 15 Dec 2024 11:37:37 +0000 Message-ID: <87y10hb2im.fsf@localhost> References: <87ed29ixu8.fsf@daniel-mendler.de> <875xnlfdzi.fsf@daniel-mendler.de> <86cyhtrzmo.fsf@gnu.org> <87jzc1dxk2.fsf@daniel-mendler.de> <868qshry7w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Daniel Mendler , 74879@debbugs.gnu.org, monnier@iro.umontreal.ca, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 12:37:30 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 1tMmwE-0008nx-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 12:37:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMmvo-0002UT-Pj; Sun, 15 Dec 2024 06:37: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 1tMmvm-0002UA-SS for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 06:37: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 1tMmvm-0003Eu-K2 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 06:37: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=+nMmsVtP1yX+8jrS6Y/jZsLhQNrhSzWOgoD2LoY53B8=; b=lQHdYD0BpnzQckJpC1CTaj0yN8uJlgQtGxxxlQi5X+BkY5M0+AOFlEQmnEKXj1x+BvF1qQIah94Hi8P/iifOGjJSk4SGxO7nKt6nMF6lAId3b2MsZFZDlMLJb5Ekql9mFEHcS7KwRlCddCzMXZ0GTmDB9wMgIDnW+ac1MvxfwGn/eCh1DBzpxEFyeaHGvNX4S0YjE+HM0FnQv1JJTAQb8YY5TNlM/vGpuKufd639T6uMiwic3d088EdHie3VNVXMDiYj6gOBW7eFi0iiydu17cOv5mU0cG8/DgY8OYLkM1BSpigiZ8ukWKglsNsarl9NmcI5v6+71/kMa1aURNvh+Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMmvm-0000MB-7N for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 06:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 11:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74879 X-GNU-PR-Package: emacs Original-Received: via spool by 74879-submit@debbugs.gnu.org id=B74879.17342625811293 (code B ref 74879); Sun, 15 Dec 2024 11:37:02 +0000 Original-Received: (at 74879) by debbugs.gnu.org; 15 Dec 2024 11:36:21 +0000 Original-Received: from localhost ([127.0.0.1]:49739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMmv5-0000Kl-MX for submit@debbugs.gnu.org; Sun, 15 Dec 2024 06:36:20 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:54015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMmv3-0000KU-8f for 74879@debbugs.gnu.org; Sun, 15 Dec 2024 06:36:18 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8F13C240101 for <74879@debbugs.gnu.org>; Sun, 15 Dec 2024 12:36:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734262569; bh=ia9qpumZIYjzB+7i9H1IlUdWud1gRWXBoMgnsgtwy68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=kO4PK5AxPA3CSHdeKvwtxZRKBueb7iPMh2wOyvzKlyACSerH/8l7G44eOL1WfgTrY Xt7JP2M3NkeOGgWpPQCsJ/qs69j08CPBzV0bNwGctQ7I41ghl5RPKDEZ0kLmpmLAmj aaOSFbyMt6txIxRfjTRwSYy8EK/jsBL3hCQHOAk6t21oan0BwQT4b0l1rzO/DH0/23 Ebow2GhHW4z+6r7f0uCbfRV0ADJLXSY6oYjik1HpSpmYod1oV6oUZw0KTPiFP2TrkN hwvHs4yAf5xhwMFafCP9ghRHzkb445eDvdyYMJCscdI0Go/wKdsEo4+hZ9SMr2AmdX UzQO/lSJb5fLw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YB1HD32jyz9rxG; Sun, 15 Dec 2024 12:36:08 +0100 (CET) In-Reply-To: <868qshry7w.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:297096 Archived-At: Eli Zaretskii writes: > The question is serious: how do we envision this "trust" thing to work > with buffers that don't visit files? If we are to change the code, > certainly on the emacs-30 branch, we need a solid solution which > provides more safety/security to users. Adding a variable doesn't > solve a problem, it _adds_ a problem (how to populate the variable). Let me try. If buffer contents is not coming from a file, it must be generated by some Elisp code. That code may as well set trust status. For example, *scratch* buffer may have its contents (automatically generated) marked as trusted by default. Does it make sense? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at