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

Issue 303293002: Initialize the bootstrap sandbox in the browser process. (Closed)

Created:
6 years, 6 months ago by Robert Sesek
Modified:
6 years, 6 months ago
Reviewers:
Mark Mentovai, jam
CC:
chromium-reviews, darin-cc_chromium.org, jam, Mark Mentovai
Visibility:
Public.

Description

Initialize the bootstrap sandbox in the browser process. This wires up the ChildProcessLauncher and SandboxedProcessLauncherDelegate. No restrictive policies are currently registered or enforced, i.e. renderers should not be locked down. However, to keep NPAPI plugins working, an allow-by- default policy exists. BUG=367863 R=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276026

Patch Set 1 #

Patch Set 2 : Ready for review #

Patch Set 3 : Merge bootstrap-child-proc branch #

Total comments: 4

Patch Set 4 : SandboxType #

Total comments: 1

Patch Set 5 : NPAPI workaround #

Total comments: 2

Patch Set 6 : Rename constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -20 lines) Patch
A content/browser/bootstrap_sandbox_mac.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A content/browser/bootstrap_sandbox_mac.cc View 1 2 3 4 5 1 chunk +96 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 3 chunks +16 lines, -3 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/sandbox_init_mac.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/sandbox_init_mac.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/sandbox_mac.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/sandbox_mac_unittest_helper.mm View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/plugin/plugin_main_mac.mm View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M content/public/common/sandbox_type_mac.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.cc View 1 2 3 1 chunk +19 lines, -12 lines 0 comments Download
M sandbox/mac/bootstrap_sandbox.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Robert Sesek
6 years, 6 months ago (2014-05-30 18:46:40 UTC) #1
Mark Mentovai
https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h File content/public/common/sandboxed_process_launcher_delegate.h (right): https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h#newcode66 content/public/common/sandboxed_process_launcher_delegate.h:66: // Gets the Mac SandboxType to enforce on the ...
6 years, 6 months ago (2014-05-30 21:01:12 UTC) #2
Robert Sesek
https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h File content/public/common/sandboxed_process_launcher_delegate.h (right): https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h#newcode66 content/public/common/sandboxed_process_launcher_delegate.h:66: // Gets the Mac SandboxType to enforce on the ...
6 years, 6 months ago (2014-05-30 21:05:11 UTC) #3
Mark Mentovai
Then why is this returning an int instead of a SandboxType? To unsubscribe from this ...
6 years, 6 months ago (2014-05-30 21:07:43 UTC) #4
jam
https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h File content/public/common/sandboxed_process_launcher_delegate.h (right): https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h#newcode66 content/public/common/sandboxed_process_launcher_delegate.h:66: // Gets the Mac SandboxType to enforce on the ...
6 years, 6 months ago (2014-05-30 21:11:55 UTC) #5
Robert Sesek
https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h File content/public/common/sandboxed_process_launcher_delegate.h (right): https://codereview.chromium.org/303293002/diff/70001/content/public/common/sandboxed_process_launcher_delegate.h#newcode66 content/public/common/sandboxed_process_launcher_delegate.h:66: // Gets the Mac SandboxType to enforce on the ...
6 years, 6 months ago (2014-05-30 21:17:35 UTC) #6
Mark Mentovai
LGTM
6 years, 6 months ago (2014-05-30 21:20:38 UTC) #7
Avi (use Gerrit)
Drive-by nit. https://codereview.chromium.org/303293002/diff/110001/content/browser/bootstrap_sandbox_mac.h File content/browser/bootstrap_sandbox_mac.h (right): https://codereview.chromium.org/303293002/diff/110001/content/browser/bootstrap_sandbox_mac.h#newcode14 content/browser/bootstrap_sandbox_mac.h:14: // Returns the singleton instance of the ...
6 years, 6 months ago (2014-05-30 22:10:12 UTC) #8
jam
lgtm
6 years, 6 months ago (2014-05-30 23:05:29 UTC) #9
Robert Sesek
PTAL. Patch set 4 broke NPAPI plugins. I needed to rebase against trunk to pick ...
6 years, 6 months ago (2014-06-05 20:24:37 UTC) #10
Mark Mentovai
LGTM % usage-describing nit https://codereview.chromium.org/303293002/diff/150001/content/common/sandbox_init_mac.cc File content/common/sandbox_init_mac.cc (right): https://codereview.chromium.org/303293002/diff/150001/content/common/sandbox_init_mac.cc#newcode80 content/common/sandbox_init_mac.cc:80: "org.chromium.sandbox.real_bootstrap_server"; You’re never ever ever ...
6 years, 6 months ago (2014-06-05 20:32:28 UTC) #11
Robert Sesek
https://codereview.chromium.org/303293002/diff/150001/content/common/sandbox_init_mac.cc File content/common/sandbox_init_mac.cc (right): https://codereview.chromium.org/303293002/diff/150001/content/common/sandbox_init_mac.cc#newcode80 content/common/sandbox_init_mac.cc:80: "org.chromium.sandbox.real_bootstrap_server"; On 2014/06/05 20:32:28, Mark Mentovai wrote: > You’re ...
6 years, 6 months ago (2014-06-05 20:44:27 UTC) #12
Mark Mentovai
Good. LGTM.
6 years, 6 months ago (2014-06-05 20:48:46 UTC) #13
jam
slgtm
6 years, 6 months ago (2014-06-09 19:59:38 UTC) #14
Robert Sesek
The CQ bit was checked by rsesek@chromium.org
6 years, 6 months ago (2014-06-09 20:37:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/303293002/170001
6 years, 6 months ago (2014-06-09 20:38:48 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 09:57:57 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 14:50:51 UTC) #18
Message was sent while issue was closed.
Change committed as 276026

Powered by Google App Engine
This is Rietveld 408576698