unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: cdelia@dc.uba.ar
Cc: emacs-devel@gnu.org
Subject: Re: mark .dir-locals.el buffer or file as safe instead of variables as safe
Date: Wed, 27 Jun 2018 05:33:59 +0300	[thread overview]
Message-ID: <83fu19q7oo.fsf@gnu.org> (raw)
In-Reply-To: <d0ebecade06de0dcdf602bc66d0fb147@dc.uba.ar> (cdelia@dc.uba.ar)

> Date: Tue, 26 Jun 2018 21:14:52 -0300
> From: cdelia@dc.uba.ar
> 
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Safe-File-Variables.html#Safe-File-Variables
> 
> I'm trying to wrap my head around this, and I, in my *very* humble 
> opinion, think, it's a bad design decision.
> 
> and that's because:
> One just *do not trust variables*, only *those who modify it*.

I believe there's a possibility of someone's maliciously redirecting
your "trusted" file to another one, e.g. with a symlink.

IOW, we don't really know who modified the file and why.



  reply	other threads:[~2018-06-27  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-27  0:14 mark .dir-locals.el buffer or file as safe instead of variables as safe cdelia
2018-06-27  2:33 ` Eli Zaretskii [this message]
2018-06-27  4:24 ` Phil Sainty
2018-06-27  4:34   ` Phil Sainty
2018-06-27  6:36     ` Phil Sainty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fu19q7oo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=cdelia@dc.uba.ar \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).