Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Issue 21012004: Explicitly exec hooks inside a shell. (Closed)

Created:
7 years, 4 months ago by szager1
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Explicitly exec hooks inside a shell. We don't want to permit the execution of an arbitrary binary. TBR=ilevy@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214193

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M git-templates/hooks/applypatch-msg View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/post-applypatch View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/post-checkout View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/post-commit View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/post-merge View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/post-update View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/pre-applypatch View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/pre-auto-gc View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/pre-commit View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/pre-rebase View 1 chunk +1 line, -1 line 0 comments Download
M git-templates/hooks/prepare-commit-msg View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
szager1
7 years, 4 months ago (2013-07-29 16:10:06 UTC) #1
szager1
Committed patchset #1 manually as r214193.
7 years, 4 months ago (2013-07-29 16:10:43 UTC) #2
Isaac (away)
I disagree with this. I don't think it adds security to execute an scripts as ...
7 years, 4 months ago (2013-07-29 16:53:10 UTC) #3
szager1
On 2013/07/29 16:53:10, Isaac wrote: > I disagree with this. I don't think it adds ...
7 years, 4 months ago (2013-07-29 16:59:48 UTC) #4
szager1
On 2013/07/29 16:59:48, szager1 wrote: > On 2013/07/29 16:53:10, Isaac wrote: > > I disagree ...
7 years, 4 months ago (2013-07-29 17:00:46 UTC) #5
Isaac (away)
This appears to have broken new src-internal checkouts, which have a post-checkout hook that doesn't ...
7 years, 4 months ago (2013-08-07 00:54:22 UTC) #6
szager
7 years, 4 months ago (2013-08-07 00:57:25 UTC) #7
On Tue, Aug 6, 2013 at 5:54 PM, <ilevy@chromium.org> wrote:

> This appears to have broken new src-internal checkouts, which have a
> post-checkout hook that doesn't work in sh.
>
> Can you explain why you believe execing sh offers higher security?
>
> http://chromegw.corp.google.**com/viewvc/chrome-internal?**
>
view=rev&revision=32105<http://chromegw.corp.google.com/viewvc/chrome-internal?view=rev&revision=32105>
>
>
https://chromiumcodereview.**appspot.com/21012004/<https://chromiumcodereview...
>

It's not an exec issue; it's bash vs. sh issue.  I'm trying to figure out
alternate syntax that works in sh.  Failing that, I'll revert.

Powered by Google App Engine
This is Rietveld 408576698