From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= 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 16:16:12 +0100 Message-ID: References: <87ed29ixu8.fsf@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8881"; 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 Sun Dec 15 16:17: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 1tMqN2-0002AZ-HO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 16:17:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMqMo-00029g-JU; Sun, 15 Dec 2024 10:17:12 -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 1tMqMg-00029U-Jp for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 10:17: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 1tMqMg-000552-BM for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 10:17: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=b80jt5cNbRg0wuCMONuyZ4q/me+i287O3Zib3ec2fDc=; b=QphWsF/175sR6KzFaYL8oCh9DKjBxLPonp1XCvJ8fKNDoQ9OwHPRJP2S42Voi65u+tfuWDViv6pT5FEwzJVq6Nif3MgqQU48S6Is+1rHK1kf4RF624qlpanuy8CyLUkhTLXmCBef57+LDIhT2Fj73SlYzl3Nn7/9dEiOH4TcXJpG4mBSvan1QXuXSpk+5AtvOArPtFCBKvChBYghjyR3I218+t16+ilLwXnLIAxoRSxdxvpcOeAvDUeN45CACjW8KXVOlAkjwRLZFM3EvIghVtKS4H+Ii55jtgDE3C7KOkX2XEx7p3VG8OAPzOabkuHqSFJ4oKLJfZqZa5Ch/J+czg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMqMf-00036w-Ug for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 10:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 15:17:01 +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.173427579311914 (code B ref -1); Sun, 15 Dec 2024 15:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2024 15:16:33 +0000 Original-Received: from localhost ([127.0.0.1]:51606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMqMC-000366-FB for submit@debbugs.gnu.org; Sun, 15 Dec 2024 10:16:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMqM6-00035u-US for submit@debbugs.gnu.org; Sun, 15 Dec 2024 10:16:28 -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 1tMqM1-0001kU-Tl for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 10:16:25 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMqLz-0004zF-UO for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 10:16:21 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5d3d143376dso4793003a12.3 for ; Sun, 15 Dec 2024 07:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734275775; x=1734880575; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=b80jt5cNbRg0wuCMONuyZ4q/me+i287O3Zib3ec2fDc=; b=c0gXI6oVDRxNKDM084/kLfBOI+jj0WWcyiZKUgn43OgfGuFEczkP8ovMmxlWf7e0jl MX5JwDCcBn5uj8RLBSGrt/bbG/u1h0bL2WjzV8kiBexxHGeZeX2EWVJ8sThYpfzZrI4K Hml2nWdv8aZhAmJFxIbwx5d2lsCy0ZkupvR/zrbdPlK6h60YVA009DbVx0fgxMJXYBiA AVcu8spage6DloWCkAtE8EWtQZpQ+8KvavTwCyItiUqxrNbGB05wDOq7BHR/b1OVQ25n OYzOoCwU3B2RSz773bYn9c8rlo8eqpPsJeXSQoonaNblHBHp0eidIVhwMVMrojK3iwbL yy0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734275775; x=1734880575; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b80jt5cNbRg0wuCMONuyZ4q/me+i287O3Zib3ec2fDc=; b=p53b3qnmMOZFGWB/Ypwptef0Q1mqAACm8C+MaUdvb3jWwmbqAVgOYG3oxbWFRLh43K 19ZkzzJXccf8AQni8KKlkAZjpvWuXSkLvz4UKd1itCVAFv10LmQzYnxiylXbTCxprQ7q walW1xBkGYKv7e6i2CphW3SaU7FydX905ijbkkFFGWB7yBdd3QmwpjK22bNIEGhow8DG IN7sKySVdW/tbVVhTBHtUU93gaMfCsArMnUAhi7HdLNNQYJflXMc/eEV/ruOmpklewDW nL4oy9Koz3aYoJq2ItyRt2QvHVfWKwu+rcLcLpLTF8aG787Jjtaa1yPR4pF/qSJuY+Qj O8CQ== X-Gm-Message-State: AOJu0Yy9EP/o/35BTuw3ZjIEz7NWX7tVGTYTBGzL6ccbp+NiiLcpZDZo +WH/TW/9lorIujCyQAth+29OxqJTHpcEgLFHsmNmhaHrF0GiSQOa X-Gm-Gg: ASbGnctiy7bTCFwoikvVLAaXbrJldFRE/jEIwP3KVM0dR1zJMlNBDwaQsAYAqJKXcxj mdggFrSLhB+tsDLI9+QvGPCdkStgmKMASQt0frSZi+7aWVTyFuJBk++5te5RMPKKwnSuudk92Ov cUjBfkC9mtLACOrC4bUVLyv701rWQAy3qXyyKbt9jaqg6B40qdUGTrERxxCwJILpFi71cihmMda 9G4/NKQmEIQ1ChOkpXs+ZCHHEROWum00kJZ8tVL76YqkuHYvm4y8vZTlCHWBNku4qJlXJPVbOak gSv3O2qCam0GzNB+xvc2mj/aBjgLAJ/OZ9C2WRm66r8Qhwmvt5m+prfjKsdt0+/OiQ== X-Google-Smtp-Source: AGHT+IGKqTLopyfpnhO1CrD4YZXWZGwp0qEBSyfQqPuHO2ilywqzBNTPpx5nxiV+/ccYin7ST8elYg== X-Received: by 2002:a05:6402:3813:b0:5d0:849c:71c3 with SMTP id 4fb4d7f45d1cf-5d63c15ec5fmr8584229a12.0.1734275774874; Sun, 15 Dec 2024 07:16:14 -0800 (PST) Original-Received: from pro2 (p200300e0b7208800845360bbbfb3451f.dip0.t-ipconnect.de. [2003:e0:b720:8800:8453:60bb:bfb3:451f]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d652ab5082sm2132691a12.4.2024.12.15.07.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 07:16:13 -0800 (PST) In-Reply-To: (Stefan Monnier via's message of "Sun, 15 Dec 2024 10:10:05 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x530.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:297112 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> Random thought: >> >> - What if a user pastes text from a untrusted source to a trusted buffer? >> >> - Is taint checking relevant in this context? >> >> https://en.wikipedia.org/wiki/Taint_checking > > I'll just repeat that trust sucks. > It's a last recourse and we should work to implement better solutions. Sure, I didn't mean it as a critique on what's there.