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

Issue 688843003: Linux sandbox: refactor BrokerProcess class (Closed)

Created:
6 years, 1 month ago by jln (very slow on Chromium)
Modified:
6 years, 1 month ago
Reviewers:
leecam, mdempsky
CC:
chromium-reviews, darin-cc_chromium.org, jam, jln+watch_chromium.org, Jorge Lucangeli Obes, rickyz (no longer on Chrome)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Linux sandbox: refactor BrokerProcess class The BrokerProcess class is too complex. It both serves as management of a new broker process, as well as the implementation of an async-signal-safe IPC mechanism suitable to broker syscall. We split the BrokerProcess class into 4 simpler classes. This will make it easier to replace the broker process with a thread or a new Chrome process type. BUG=429028 Committed: https://crrev.com/70c42c20bd408c9f1b4d43f5154da43c16529cf8 Cr-Commit-Position: refs/heads/master@{#302370}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : Better comments. #

Patch Set 5 : More comments. #

Patch Set 6 : Address Lee's comments. #

Total comments: 16

Patch Set 7 : Address Matthew's comments. #

Patch Set 8 : Remove unused variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+939 lines, -1187 lines) Patch
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/BUILD.gn View 3 chunks +10 lines, -3 lines 0 comments Download
M sandbox/linux/bpf_dsl/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 chunk +10 lines, -3 lines 0 comments Download
M sandbox/linux/sandbox_linux_test_sources.gypi View 1 chunk +1 line, -1 line 0 comments Download
D sandbox/linux/services/broker_process.h View 1 chunk +0 lines, -106 lines 0 comments Download
D sandbox/linux/services/broker_process.cc View 1 chunk +0 lines, -545 lines 0 comments Download
D sandbox/linux/services/broker_process_unittest.cc View 1 chunk +0 lines, -477 lines 0 comments Download
A + sandbox/linux/syscall_broker/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_client.h View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_client.cc View 1 2 3 4 5 6 1 chunk +144 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_common.h View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_host.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_host.cc View 1 2 3 4 5 6 1 chunk +221 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_policy.h View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_policy.cc View 1 2 3 4 5 6 7 1 chunk +175 lines, -0 lines 0 comments Download
A + sandbox/linux/syscall_broker/broker_process.h View 1 2 3 3 chunks +21 lines, -39 lines 0 comments Download
A sandbox/linux/syscall_broker/broker_process.cc View 1 chunk +124 lines, -0 lines 0 comments Download
A + sandbox/linux/syscall_broker/broker_process_unittest.cc View 5 chunks +10 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
jln (very slow on Chromium)
Matthew: I apologize in advance for an annoying review. This is a first step towards ...
6 years, 1 month ago (2014-10-31 03:40:38 UTC) #2
jln (very slow on Chromium)
rickyz or leecam: would you mind doing a first-pass before Matthew?
6 years, 1 month ago (2014-10-31 17:44:57 UTC) #3
leecam
On 2014/10/31 17:44:57, jln (OOO til 29th) wrote: > rickyz or leecam: would you mind ...
6 years, 1 month ago (2014-10-31 17:47:35 UTC) #4
leecam
lgtm - I did my review on ps3 but comments looks good in the new ...
6 years, 1 month ago (2014-10-31 21:06:25 UTC) #6
jln (very slow on Chromium)
Thanks for the quick review Lee! Matthew: PTAL! https://chromiumcodereview.appspot.com/688843003/diff/40001/sandbox/linux/syscall_broker/broker_host.cc File sandbox/linux/syscall_broker/broker_host.cc (right): https://chromiumcodereview.appspot.com/688843003/diff/40001/sandbox/linux/syscall_broker/broker_host.cc#newcode98 sandbox/linux/syscall_broker/broker_host.cc:98: write_pickle->WriteInt(-access_errno); ...
6 years, 1 month ago (2014-10-31 21:43:19 UTC) #7
mdempsky
lgtm Handful of optional cleanups. So feel free to defer to a followup CL if ...
6 years, 1 month ago (2014-10-31 22:13:43 UTC) #8
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/688843003/diff/100001/sandbox/linux/syscall_broker/broker_client.h File sandbox/linux/syscall_broker/broker_client.h (right): https://chromiumcodereview.appspot.com/688843003/diff/100001/sandbox/linux/syscall_broker/broker_client.h#newcode38 sandbox/linux/syscall_broker/broker_client.h:38: // Can be used in place of access(). Will ...
6 years, 1 month ago (2014-10-31 23:15:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/688843003/140001
6 years, 1 month ago (2014-10-31 23:45:14 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-01 01:00:17 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-01 01:00:49 UTC) #13
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/70c42c20bd408c9f1b4d43f5154da43c16529cf8
Cr-Commit-Position: refs/heads/master@{#302370}

Powered by Google App Engine
This is Rietveld 408576698