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#74627: .dir-locals.el warning messages are confusing Date: Thu, 05 Dec 2024 11:38:51 +0200 Message-ID: <86a5daxydw.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74627@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 05 10:40:23 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 1tJ8LO-0003qv-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Dec 2024 10:40:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJ8L6-0000sf-Ff; Thu, 05 Dec 2024 04:40: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 1tJ8L4-0000rK-Vx for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2024 04:40: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 1tJ8L4-0004QW-N2 for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2024 04: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:References:In-Reply-To:From:Date:To:Subject; bh=nOnhpPv0iT606Fro7I4aw6QvJDEIxUAQ7/h07YaQqUw=; b=HytslV7OnB3t++Cw5SZ/na542WQnlJ8nB+kLxL4xS++1MGC0zvbtCq+NJ3wGcAX7txJfkh4f6oWjt/f8l5ulh4dxt8mQUhTO2gcCjICOwu42tAxAQ0Q8ZrbUYxAZELG5qVSCM0A7RuTl3Pg3yPCer5SYBM2drMZ7/5lvmqAnq6N6NPh74Iw0Y10N78N5u6UFhQ6qLET0gloctA0gO8haj8ovaRJ9XMYOrmyfAoc+dT9TW+5T2/MDYIdr5qNardBS/0rRxXWX4ACp/7o6SdYdtnyueMB39WKezubb+XbcvQWHUyGteoWbjSVSruDpnXfN8CJ3bWu1Ewaut6nVukBmZQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJ8L4-0002aA-Cb for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2024 04:40: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: Thu, 05 Dec 2024 09:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74627 X-GNU-PR-Package: emacs Original-Received: via spool by 74627-submit@debbugs.gnu.org id=B74627.17333915439844 (code B ref 74627); Thu, 05 Dec 2024 09:40:02 +0000 Original-Received: (at 74627) by debbugs.gnu.org; 5 Dec 2024 09:39:03 +0000 Original-Received: from localhost ([127.0.0.1]:38303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJ8K7-0002Yh-Bu for submit@debbugs.gnu.org; Thu, 05 Dec 2024 04:39:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJ8K5-0002YA-J1 for 74627@debbugs.gnu.org; Thu, 05 Dec 2024 04:39:02 -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 1tJ8Jy-00032o-Hu; Thu, 05 Dec 2024 04:38:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=nOnhpPv0iT606Fro7I4aw6QvJDEIxUAQ7/h07YaQqUw=; b=HCOq9bghJYIh9qXy4vqf bUBhtcB8z91AP7U2k1P4DaJ2dbS9v02G51C2AbZ0ThFqYH0B4y7d7EhVwosvHzkP199S66P9jv7Ea z6Bql5SJJDBU3yh8H0NzxCboE2tyuqNo4BzGyeEEXx2PD1JwbCNJG9hI5s0ZbmZyKX89Bsw3dYed6 1nK8Q7jE75nV4k8o2ooPqT5zks/sx8iXGsU3kbRoZzEA+4Exq4Cqynr7GgnYUZgVQ8MHGii8W6283 yLbMu8FeHazDEM0yFCIuRmKWz+V+RjDWlZRUydB+YcQifQcSo2gfnQ+kBJ5skC6L/YAfjXRDtcIC8 HJPTCQBYK7bWTg==; In-Reply-To: (message from =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist on Sat, 30 Nov 2024 18:20:35 +0100) 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:296465 Archived-At: > From: Björn Lindqvist > Date: Sat, 30 Nov 2024 18:20:35 +0100 > > Warnings about potential security issues should be easy to understand, > but the warnings produced by .dir-locals.el are not. When I open a > file in the Emacs source code it shows: > > The local variables list in /home/bjourne/p/emacs/ > or .dir-locals.el contains values that may not be safe (*). > > Why does it say "or"? Because that function is called with a single flag argument which could be set non-nil either due to unsafe file-local variables or due to .dir-locals.el. > What does the asterisk (*) mean? It means the variables marked with the asterisk in the list of below this text could be unsafe. > Could the descriptions for "!" and "i" be clearer so it is more > obvious what is applied and what is ignored? Please tell what is unclear there. The current text is ! -- to apply the local variables list, and permanently mark these values (*) as safe (in the future, they will be set automatically.) i -- to ignore the local variables list, and permanently mark these values (*) as ignored"