all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: "Eugene J." <w3techplayground@gmail.com>, 33264@debbugs.gnu.org
Subject: bug#33264: Whitelist vc-follow-symlinks as a safe file variable
Date: Mon, 15 Jul 2019 17:50:26 +0200	[thread overview]
Message-ID: <87lfwzcn5p.fsf@mouse.gnus.org> (raw)
In-Reply-To: <0c431e43-3d2a-74cf-914f-00297df210d8@yandex.ru> (Dmitry Gutov's message of "Mon, 15 Jul 2019 18:29:58 +0300")

Dmitry Gutov <dgutov@yandex.ru> writes:

> I've tried to imagine a security issue stemming from it (e.g. linking
> to an external directory tree with its own dir-locals values, and
> then... what?), but didn't really come up with anything significant.

The doc string says that a nil is "dangerous", but doesn't say what the
danger is:

---
What to do if visiting a symbolic link to a file under version control.
Editing such a file through the link bypasses the version control system,
which is dangerous and probably not what you want.

If this variable is t, VC follows the link and visits the real file,
telling you about it in the echo area.  If it is ‘ask’, VC asks for
confirmation whether it should follow the link.  If nil, the link is
visited and a warning displayed.
---

I'm guessing it doesn't really mean "dangerous", but instead "not
optimal in most cases".

Anyway, what would the safe-local values be?  nil, t and ask or just
nil?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-07-15 15:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05  2:54 bug#33264: Whitelist vc-follow-symlinks as a safe file variable Eugene J.
2019-07-10 13:11 ` Lars Ingebrigtsen
2019-07-15 15:29   ` Dmitry Gutov
2019-07-15 15:50     ` Lars Ingebrigtsen [this message]
2019-07-15 16:23       ` Gustavo Barros
2019-07-15 17:34         ` Lars Ingebrigtsen
2019-07-15 18:21       ` Dmitry Gutov
2022-01-22 15:44 ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=87lfwzcn5p.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=33264@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=w3techplayground@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.