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

Issue 8770025: Zygote most of the uses of the utility process on Linux (Closed)

Created:
9 years ago by Jorge Lucangeli Obes
Modified:
9 years ago
Reviewers:
Aaron Boodman, jam
CC:
chromium-reviews, Erik does not do reviews, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Zygote most of the uses of the utility process on Linux Allow the user of the utility process to specify whether the zygote should be used on Linux. This allows to sandbox all the uses of the utility process that don't do FS access, which right now are all except extension unpacking and NPAPI plugin listing. This is the first step to get the utility process sandboxed on Linux. Since most of the uses of the utility process don't do file access, launching all of those from the zygote will simplify sandboxing the one that does: extension unpacking. BUG=93109 TEST=Try installing an extension from the web store. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113027

Patch Set 1 #

Total comments: 5

Patch Set 2 : Make use_linux_zygote flag default to true, and remove the need for #ifdef's. #

Total comments: 1

Patch Set 3 : Rebased and adjusted comment in use_linux_zygote flag declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/app/content_main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/plugin_loader_posix.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/utility_process_host.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/utility_process_host.cc View 1 2 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jorge Lucangeli Obes
I've reworked the utility process Linux sandboxing effort into different CLs, to accommodate design changes ...
9 years ago (2011-12-01 23:53:19 UTC) #1
jam
lgtm
9 years ago (2011-12-02 02:30:34 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc File chrome/browser/extensions/extension_management_api.cc (right): http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc#newcode216 chrome/browser/extensions/extension_management_api.cc:216: utility_host_->set_should_use_zygote(true); Since most call sites want the zygote enabled, ...
9 years ago (2011-12-02 03:10:04 UTC) #3
Jorge Lucangeli Obes
http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc File chrome/browser/extensions/extension_management_api.cc (right): http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc#newcode216 chrome/browser/extensions/extension_management_api.cc:216: utility_host_->set_should_use_zygote(true); On 2011/12/02 03:10:04, Aaron Boodman wrote: > Since ...
9 years ago (2011-12-02 18:27:16 UTC) #4
Jorge Lucangeli Obes
http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc File chrome/browser/extensions/extension_management_api.cc (right): http://codereview.chromium.org/8770025/diff/1/chrome/browser/extensions/extension_management_api.cc#newcode216 chrome/browser/extensions/extension_management_api.cc:216: utility_host_->set_should_use_zygote(true); On 2011/12/02 18:27:16, jorgelo wrote: > On 2011/12/02 ...
9 years ago (2011-12-02 20:43:48 UTC) #5
Jorge Lucangeli Obes
Uploaded new version including aa@'s comments.
9 years ago (2011-12-02 20:52:31 UTC) #6
Aaron Boodman
LGTM http://codereview.chromium.org/8770025/diff/4004/content/browser/utility_process_host.h File content/browser/utility_process_host.h (right): http://codereview.chromium.org/8770025/diff/4004/content/browser/utility_process_host.h#newcode112 content/browser/utility_process_host.h:112: // Can only be used for tasks that ...
9 years ago (2011-12-03 04:56:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/8770025/8001
9 years ago (2011-12-05 18:09:26 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-05 21:27:01 UTC) #9
Change committed as 113027

Powered by Google App Engine
This is Rietveld 408576698