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

Issue 10447135: Don't fork Zygote as a background process (Closed)

Created:
8 years, 6 months ago by jln (very slow on Chromium)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jochen+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, agl, jln+watch_chromium.org
Visibility:
Public.

Description

Don't fork Zygote as a background process On Linux, with the setuid sandbox, the Zygote would become a background process of sort because the setuid sandbox would exit. The problem is that the Chrome process tree would be broken because the Zygote would be reparented to init. In turn, this could create issues with the browser not being able to ptrace() the Zygote if certain kernel restrictions are in place (e.g. Yama). BUG=125225 TEST= NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140104

Patch Set 1 #

Patch Set 2 : Sync Parent / child for closing of the Zygote FD #

Patch Set 3 : minor update #

Total comments: 6

Patch Set 4 : address reviewers' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -2 lines) Patch
M content/common/zygote_commands_linux.h View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/suid/sandbox.c View 1 2 3 5 chunks +67 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jln (very slow on Chromium)
Have the setuid sandbox wait() on Zygote to avoid re-parenting.
8 years, 6 months ago (2012-06-01 02:12:38 UTC) #1
agl
LGTM. You should also check that, with this patch running and the sandbox active (i.e. ...
8 years, 6 months ago (2012-06-01 13:13:57 UTC) #2
Jorge Lucangeli Obes
lgtm with a couple of nits in comments and error messages. Besides using the trybots ...
8 years, 6 months ago (2012-06-01 15:08:07 UTC) #3
jln (very slow on Chromium)
On 2012/06/01 13:13:57, agl wrote: > LGTM. > > You should also check that, with ...
8 years, 6 months ago (2012-06-01 19:11:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10447135/11001
8 years, 6 months ago (2012-06-01 20:00:33 UTC) #5
commit-bot: I haz the power
Presubmit check for 10447135-11001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-01 20:00:38 UTC) #6
jln (very slow on Chromium)
John, would you mind approving the new one-line comment in /content ? Thanks, Julien
8 years, 6 months ago (2012-06-01 20:07:29 UTC) #7
Lei Zhang
On 2012/06/01 19:11:01, Julien Tinnes wrote: > On 2012/06/01 13:13:57, agl wrote: > > LGTM. ...
8 years, 6 months ago (2012-06-01 20:53:54 UTC) #8
Avi (use Gerrit)
lgtm content stamp
8 years, 6 months ago (2012-06-01 20:56:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10447135/11001
8 years, 6 months ago (2012-06-01 21:40:43 UTC) #10
commit-bot: I haz the power
8 years, 6 months ago (2012-06-01 21:41:45 UTC) #11
Change committed as 140104

Powered by Google App Engine
This is Rietveld 408576698