From: Jonathan Nieder <jrnieder@gmail.com>
To: Greg Brockman <gdb@MIT.EDU>
Cc: "Johannes Sixt" <j.sixt@viscovery.net>,
"Ævar Arnfjörð" <avarab@gmail.com>,
gitster@pobox.com, git@vger.kernel.org
Subject: Re: [PATCHv3] Updated patch series for providing mechanism to list available repositories
Date: Wed, 28 Jul 2010 01:42:51 -0500 [thread overview]
Message-ID: <20100728064251.GB743@dert.cs.uchicago.edu> (raw)
In-Reply-To: <AANLkTik1D45_cHPapbmMMys-V544ssCyoxrs5Fxck7oP@mail.gmail.com>
Greg Brockman wrote:
> That aside, here's an analysis of my patch series:
> Patch 1 just adds
[...]
Agh, it’s getting late. In my last message I completely
forgot about the make_cmd() step. Sorry to waste your time
on that.
And sorry to waste your time in general --- from your description
it sounds like this could be summarized by:
patch 1 adds
memory allocation, split_cmdline call (innocuous things)
execv which will fail if git-shell-commands is not a directory
> This will be an arbitrary directory if a user can 'su' to the
> git-shell user.
That would be an odd setup, but I guess with shared repositories
there's a reason to do it.
> (I am however starting to lean towards always
> chdir'ing into the git-shell user's $HOME, do people feel strongly
> about this in either direction?)
I don't feel strongly either way. It would be a good way to
put the worry about that attack vector to rest (if you use
getpwent instead of getenv to fetch $HOME).
Patch 2 adds the new run_shell() feature, but it is guarded
with access(COMMAND_DIR), so existing installations should not be
affected.
Patch 3 does not even touch git.
> See anything I'm missing?
No, it looks good to me.
Thanks for the patient explanations.
Jonathan
next prev parent reply other threads:[~2010-07-28 6:42 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 15:15 [PATCHv3] Updated patch series for providing mechanism to list available repositories Greg Brockman
2010-07-21 15:15 ` [PATCH 1/3] Allow creation of arbitrary git-shell commands Greg Brockman
2010-07-21 15:15 ` [PATCH 2/3] Add interactive mode to git-shell for user-friendliness Greg Brockman
2010-07-21 15:15 ` [PATCH 3/3] Add sample commands for git-shell Greg Brockman
2010-07-26 22:32 ` [PATCHv3] Updated patch series for providing mechanism to list available repositories Greg Brockman
2010-07-26 22:54 ` Ævar Arnfjörð Bjarmason
2010-07-26 23:18 ` Greg Brockman
2010-07-27 9:02 ` Jakub Narebski
2010-07-26 23:28 ` Jonathan Nieder
2010-07-27 0:20 ` Greg Brockman
2010-07-27 0:50 ` Jonathan Nieder
2010-07-27 7:16 ` Johannes Sixt
2010-07-27 17:41 ` Jonathan Nieder
2010-07-27 22:43 ` Greg Brockman
2010-07-28 0:33 ` Jonathan Nieder
2010-07-28 6:15 ` Greg Brockman
2010-07-28 6:42 ` Jonathan Nieder [this message]
2010-07-28 7:06 ` Greg Brockman
2010-07-28 23:14 ` Anders Kaseorg
2010-07-28 23:52 ` Jonathan Nieder
2010-07-29 0:21 ` Greg Brockman
2010-07-29 0:33 ` Jonathan Nieder
2010-07-28 1:10 ` Jonathan Nieder
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=20100728064251.GB743@dert.cs.uchicago.edu \
--to=jrnieder@gmail.com \
--cc=avarab@gmail.com \
--cc=gdb@MIT.EDU \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j.sixt@viscovery.net \
/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.
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 NNTP newsgroup(s).