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

Issue 2070483002: Add PRESUBMIT rule to make sure IPC changes are security reviewed. (Closed)

Created:
4 years, 6 months ago by dcheng
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, inferno, jln (very slow on Chromium), jschuh, kenrb, meacer, Mike West, nasko, Oliver Chang, palmer, ricky_chromium.org, Robert Sesek, Tom Sepez, Will Harris, esprehn, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PRESUBMIT rule to make sure IPC changes are security reviewed. The PRESUBMIT rule makes sure that files involving IPC are covered by the appropriate per-file rules. See https://goo.gl/NRiIPv for other alternatives that were considered (e.g. why not recursive per-file rules?). BUG=611905 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/e07de81b11b1c5b62eaaa258e896878eb5364ff2 Cr-Commit-Position: refs/heads/master@{#400748}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : 'fix typo and remove inferno per request' #

Total comments: 4

Patch Set 4 : Address review comments #

Total comments: 2

Patch Set 5 : Address comments. #

Patch Set 6 : Really upload changes #

Patch Set 7 : Update OWNERS and add Blink-specific patterns #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -1208 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 6 chunks +112 lines, -11 lines 0 comments Download
M android_webview/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M ash/sysui/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M cc/ipc/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -31 lines 0 comments Download
M chrome/browser/devtools/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/importer/OWNERS View 1 2 3 4 5 6 1 chunk +0 lines, -12 lines 1 comment Download
M chrome/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -13 lines 0 comments Download
M chrome/common/extensions/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M chrome/common/importer/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M chrome/common/media/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -13 lines 0 comments Download
M chrome/common/safe_browsing/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -23 lines 0 comments Download
M chrome/utility/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M chrome/utility/importer/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M chromecast/common/media/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -22 lines 0 comments Download
M components/arc/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -8 lines 0 comments Download
M components/autofill/content/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -11 lines 0 comments Download
M components/autofill/content/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/cdm/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -12 lines 0 comments Download
M components/content_settings/content/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -13 lines 0 comments Download
M components/contextual_search/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M components/contextual_search/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/data_reduction_proxy/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/dom_distiller/content/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/filesystem/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/font_service/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/guest_view/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M components/leveldb/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/mus/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/nacl/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M components/password_manager/content/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/pdf/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M components/printing/common/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -25 lines 0 comments Download
M components/safe_json/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
D components/startup_metric_utils/browser/OWNERS View 1 2 3 4 5 6 1 chunk +0 lines, -13 lines 0 comments Download
M components/startup_metric_utils/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M components/subresource_filter/content/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -13 lines 0 comments Download
M components/tracing/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M components/visitedlink/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M components/web_cache/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -10 lines 0 comments Download
M content/child/fileapi/OWNERS View 1 2 3 4 5 6 1 chunk +0 lines, -13 lines 0 comments Download
M content/child/indexed_db/OWNERS View 1 2 3 4 5 6 1 chunk +0 lines, -13 lines 0 comments Download
M content/common/OWNERS View 1 chunk +7 lines, -57 lines 0 comments Download
M content/common/android/OWNERS View 1 2 3 4 5 6 1 chunk +4 lines, -33 lines 0 comments Download
M content/common/browser_plugin/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M content/common/cache_storage/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M content/common/dom_storage/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M content/common/fileapi/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M content/common/gpu/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M content/common/indexed_db/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M content/common/media/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -22 lines 0 comments Download
M content/common/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -19 lines 0 comments Download
M content/common/service_worker/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -16 lines 0 comments Download
M content/public/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -14 lines 0 comments Download
M device/battery/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -25 lines 0 comments Download
M device/usb/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M device/vibration/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M device/vr/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M extensions/common/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M extensions/common/guest_view/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M ipc/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -9 lines 0 comments Download
A ipc/SECURITY_OWNERS View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M media/base/ipc/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -12 lines 0 comments Download
M media/gpu/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M media/mojo/common/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -12 lines 0 comments Download
M media/mojo/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M ppapi/proxy/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -23 lines 0 comments Download
M remoting/host/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -11 lines 0 comments Download
M services/catalog/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M services/shell/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M services/tracing/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M services/user/public/interfaces/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -13 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/geolocation/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/notifications/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/payments/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/permissions/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/public/platform/modules/wake_lock/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -12 lines 0 comments Download
M ui/events/devices/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -24 lines 0 comments Download
M ui/gfx/geometry/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -24 lines 0 comments Download
M ui/gfx/ipc/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -7 lines 0 comments Download
M ui/gfx/ipc/geometry/OWNERS View 1 2 3 4 5 6 1 chunk +1 line, -7 lines 0 comments Download
M ui/gfx/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -24 lines 0 comments Download
M ui/ozone/common/gpu/OWNERS View 1 2 3 4 5 6 1 chunk +5 lines, -10 lines 0 comments Download
M url/mojo/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -25 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
dcheng
Assuming this patch is acceptable, I'll update the CL to fix up other OWNERS files ...
4 years, 6 months ago (2016-06-15 10:42:27 UTC) #4
Robert Sesek
https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS File ipc/SECURITY_OWNERS (right): https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS#newcode14 ipc/SECURITY_OWNERS:14: ricky@chromium.org rickyz maybe?
4 years, 6 months ago (2016-06-15 14:55:39 UTC) #6
inferno
https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS File ipc/SECURITY_OWNERS (right): https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS#newcode4 ipc/SECURITY_OWNERS:4: inferno@chromium.org Can you please remove me, i haven't done ...
4 years, 6 months ago (2016-06-15 15:04:43 UTC) #8
Will Harris
this only affects messages in content/common?
4 years, 6 months ago (2016-06-15 15:19:45 UTC) #10
dcheng
On 2016/06/15 15:19:45, Will Harris wrote: > this only affects messages in content/common? I'll update ...
4 years, 6 months ago (2016-06-15 15:46:01 UTC) #11
dcheng
https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS File ipc/SECURITY_OWNERS (right): https://codereview.chromium.org/2070483002/diff/20001/ipc/SECURITY_OWNERS#newcode4 ipc/SECURITY_OWNERS:4: inferno@chromium.org On 2016/06/15 15:04:43, inferno wrote: > Can you ...
4 years, 6 months ago (2016-06-16 08:29:13 UTC) #12
Dirk Pranke
https://codereview.chromium.org/2070483002/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2070483002/diff/40001/PRESUBMIT.py#newcode1403 PRESUBMIT.py:1403: file_patterns = [ Please add a docstring or a ...
4 years, 6 months ago (2016-06-17 05:45:52 UTC) #13
dcheng
https://codereview.chromium.org/2070483002/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2070483002/diff/40001/PRESUBMIT.py#newcode1403 PRESUBMIT.py:1403: file_patterns = [ On 2016/06/17 05:45:52, Dirk Pranke wrote: ...
4 years, 6 months ago (2016-06-17 22:01:31 UTC) #14
Dirk Pranke
lgtm. I'm not sure there is a good way to test this since you're reading ...
4 years, 6 months ago (2016-06-18 20:49:26 UTC) #15
dcheng
https://codereview.chromium.org/2070483002/diff/60001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2070483002/diff/60001/PRESUBMIT.py#newcode1473 PRESUBMIT.py:1473: entry['rules'] = [rule for rule in entry['rules'] if rule ...
4 years, 6 months ago (2016-06-19 00:03:28 UTC) #16
dcheng
+jam, mind taking a look at the OWNERS files changes and confirming this is OK? ...
4 years, 6 months ago (2016-06-19 19:59:13 UTC) #19
jam
lgtm
4 years, 6 months ago (2016-06-20 17:50:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070483002/120001
4 years, 6 months ago (2016-06-20 18:04:58 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-20 19:27:34 UTC) #24
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/e07de81b11b1c5b62eaaa258e896878eb5364ff2 Cr-Commit-Position: refs/heads/master@{#400748}
4 years, 6 months ago (2016-06-20 19:29:19 UTC) #26
xlai (Olivia)
This patch is failing the PRESUBMIT bot of my CL (https://codereview.chromium.org/2036663003/#ps360001) that has already been ...
4 years, 6 months ago (2016-06-20 20:50:19 UTC) #28
dcheng
On 2016/06/20 20:50:19, xlai (Olivia) wrote: > This patch is failing the PRESUBMIT bot of ...
4 years, 6 months ago (2016-06-20 21:09:51 UTC) #29
vinceh
On 2016/06/20 21:09:51, dcheng wrote: > On 2016/06/20 20:50:19, xlai (Olivia) wrote: > > This ...
4 years, 6 months ago (2016-06-21 06:19:45 UTC) #32
kjellander_chromium
On 2016/06/21 06:19:45, vince.h wrote: > On 2016/06/20 21:09:51, dcheng wrote: > > On 2016/06/20 ...
4 years, 6 months ago (2016-06-21 08:28:39 UTC) #33
engedy
4 years, 6 months ago (2016-06-21 10:06:35 UTC) #34
Message was sent while issue was closed.
I prepared https://codereview.chromium.org/2086803003/ to make all OWNERS file
use the same spelling as required by the PRESUBMIT script for files matching the
globs.

Powered by Google App Engine
This is Rietveld 408576698