public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp•fr>
To: Peter Krefting <peter@softwolves•pp.se>
Cc: Johan Herland <johan@herland•net>,
	Git mailing list <git@vger•kernel.org>
Subject: Re: Having Git follow symlinks
Date: Fri, 31 Jan 2014 18:56:42 +0100	[thread overview]
Message-ID: <vpqiot0ox0l.fsf@anie.imag.fr> (raw)
In-Reply-To: <alpine.DEB.2.00.1401311052370.3993@ds9.cixit.se> (Peter Krefting's message of "Fri, 31 Jan 2014 10:56:41 +0100 (CET)")

Peter Krefting <peter@softwolves•pp.se> writes:

> Oh, well, if I have the time, maybe I can come up with a patch. There
> is already some hacks in the "core.symlinks" setting, so I guess it
> should be possible.

I'd love to have a way to follow symlinks, but this needs to be done
with care: when following symlinks, writing to a link may mean writing
outside the Git repository, which brings some security concerns. Not
that following symlinks has to be insecure, but we'd have to make sure
that it does not allow a malicious user to e.g. setup a symlink to
~/.bashrc and then write to it.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

      parent reply	other threads:[~2014-01-31 17:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28 13:49 Having Git follow symlinks Peter Krefting
2014-01-28 14:47 ` Johan Herland
2014-01-30  9:01   ` Peter Krefting
2014-01-30 10:09     ` Christian Couder
2014-01-30 12:37     ` Matthieu Moy
2014-01-31  9:56       ` Peter Krefting
2014-01-31 13:20         ` Matthew Ruffalo
2014-01-31 17:23         ` Junio C Hamano
2014-01-31 17:56         ` Matthieu Moy [this message]

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=vpqiot0ox0l.fsf@anie.imag.fr \
    --to=matthieu.moy@grenoble-inp$(echo .)fr \
    --cc=git@vger$(echo .)kernel.org \
    --cc=johan@herland$(echo .)net \
    --cc=peter@softwolves$(echo .)pp.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox