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

Issue 264923011: Add a whitelist check for nacl-nonsfi mode (Closed)

Created:
6 years, 7 months ago by elijahtaylor1
Modified:
6 years, 7 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, hamaji, Yusuke Sato
Visibility:
Public.

Description

Add a whitelist check for nacl-nonsfi mode Also add an explicit check for whitelisting pepper/nacl permissions based on importing a shared module, so a shared module can potentially limit allowing import of its resources and permissions its allowed. You can still use nonsfi mode for Linux or ChromeOS by passing in --enable-nacl-nonsfi-mode, but it is on for a whitelisted set of extensions for ChromeOS without flags. BUG=355141 TEST=deploy_chrome to daisy, test app which includes whitelisted module Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269626

Patch Set 1 #

Total comments: 15

Patch Set 2 : feedback, add a test #

Total comments: 12

Patch Set 3 : feedback #

Total comments: 17

Patch Set 4 : jln feedback #

Total comments: 2

Patch Set 5 : fix test #

Total comments: 4

Patch Set 6 : comments, added check to whitelisting #

Patch Set 7 : rebase with yusukes' change #

Total comments: 1

Patch Set 8 : git cl format #

Total comments: 4

Patch Set 9 : nits #

Patch Set 10 : add includes (windows compile fail) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -30 lines) Patch
M chrome/browser/nacl_host/nacl_browser_delegate_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser_delegate_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +32 lines, -8 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pepper_permission_util.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/pepper_permission_util.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -14 lines 0 comments Download
A chrome/common/pepper_permission_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_browser_delegate.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -7 lines 0 comments Download
M components/nacl/browser/test_nacl_browser_delegate.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/browser/test_nacl_browser_delegate.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M extensions/common/manifest_handlers/shared_module_info.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
elijahtaylor1
Depends on recently landed: https://codereview.chromium.org/264923011 PTAL
6 years, 7 months ago (2014-05-03 01:04:09 UTC) #1
Mark Seaborn
On 2 May 2014 18:04, <elijahtaylor@chromium.org> wrote: > Reviewers: jln, Mark Seaborn, hamaji, > > ...
6 years, 7 months ago (2014-05-03 01:08:06 UTC) #2
Mark Seaborn
On 2 May 2014 18:04, <elijahtaylor@chromium.org> wrote: > Reviewers: jln, Mark Seaborn, hamaji, > > ...
6 years, 7 months ago (2014-05-03 01:08:07 UTC) #3
elijahtaylor1
Ha, I did but now I'm on my mobile. Its my last landed change, can ...
6 years, 7 months ago (2014-05-03 01:19:04 UTC) #4
elijahtaylor1
Ha, I did but now I'm on my mobile. Its my last landed change, can ...
6 years, 7 months ago (2014-05-03 01:19:05 UTC) #5
elijahtaylor1
Ah never mind here it is: https://codereview.chromium.org/263703002/ On May 2, 2014 6:19 PM, "Elijah Taylor" ...
6 years, 7 months ago (2014-05-03 01:33:23 UTC) #6
elijahtaylor1
Ah never mind here it is: https://codereview.chromium.org/263703002/ On May 2, 2014 6:19 PM, "Elijah Taylor" ...
6 years, 7 months ago (2014-05-03 01:33:24 UTC) #7
Mark Seaborn
Note that we shouldn't commit this until more security hardening of Non-SFI Mode has been ...
6 years, 7 months ago (2014-05-03 01:37:59 UTC) #8
elijahtaylor1
Re: not submitting this until nonsfi mode is hardened more, I don't agree. Either we ...
6 years, 7 months ago (2014-05-06 05:56:15 UTC) #9
Mark Seaborn
On 2014/05/06 05:56:15, elijahtaylor1 wrote: > Re: not submitting this until nonsfi mode is hardened ...
6 years, 7 months ago (2014-05-08 01:06:01 UTC) #10
asargent_no_longer_on_chrome
extensions related code lgtm
6 years, 7 months ago (2014-05-08 18:30:09 UTC) #11
elijahtaylor1
PTAL, feedback addressed and rebased to latest https://codereview.chromium.org/264923011/diff/10001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/264923011/diff/10001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode37 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:37: const char* ...
6 years, 7 months ago (2014-05-08 20:00:24 UTC) #12
jln (very slow on Chromium)
This looks good in general. I will still do another pass and discuss a few ...
6 years, 7 months ago (2014-05-08 23:22:41 UTC) #13
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/264923011/diff/30001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://chromiumcodereview.appspot.com/264923011/diff/30001/components/nacl/browser/nacl_process_host.cc#newcode436 components/nacl/browser/nacl_process_host.cc:436: nonsfi_mode_enabled = nonsfi_mode_enabled || > nonsfi_mode_enabled = !non_sfi_mode_allowed && ...
6 years, 7 months ago (2014-05-08 23:44:56 UTC) #14
elijahtaylor1
I will need to rebase when https://codereview.chromium.org/277463003/ lands as my change depends on it https://codereview.chromium.org/264923011/diff/30001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc ...
6 years, 7 months ago (2014-05-09 00:33:27 UTC) #15
jln (very slow on Chromium)
https://codereview.chromium.org/264923011/diff/50001/chrome/common/pepper_permission_util_unittest.cc File chrome/common/pepper_permission_util_unittest.cc (right): https://codereview.chromium.org/264923011/diff/50001/chrome/common/pepper_permission_util_unittest.cc#newcode128 chrome/common/pepper_permission_util_unittest.cc:128: You need to re-add shared_module for the next test ...
6 years, 7 months ago (2014-05-09 00:39:04 UTC) #16
elijahtaylor1
https://codereview.chromium.org/264923011/diff/50001/chrome/common/pepper_permission_util_unittest.cc File chrome/common/pepper_permission_util_unittest.cc (right): https://codereview.chromium.org/264923011/diff/50001/chrome/common/pepper_permission_util_unittest.cc#newcode128 chrome/common/pepper_permission_util_unittest.cc:128: On 2014/05/09 00:39:05, jln wrote: > You need to ...
6 years, 7 months ago (2014-05-09 00:43:43 UTC) #17
elijahtaylor1
+sky@chromium.org for OWNERS: chrome/common/pepper_permission_util.cc chrome/common/pepper_permission_util.h chrome/common/pepper_permission_util_unittest.cc
6 years, 7 months ago (2014-05-09 00:46:18 UTC) #18
jln (very slow on Chromium)
lgtm
6 years, 7 months ago (2014-05-09 00:55:57 UTC) #19
Mark Seaborn
LGTM https://codereview.chromium.org/264923011/diff/70001/chrome/common/pepper_permission_util.cc File chrome/common/pepper_permission_util.cc (right): https://codereview.chromium.org/264923011/diff/70001/chrome/common/pepper_permission_util.cc#newcode64 chrome/common/pepper_permission_util.cc:64: // We check the whitelist explicitly even though ...
6 years, 7 months ago (2014-05-09 02:12:31 UTC) #20
elijahtaylor1
https://codereview.chromium.org/264923011/diff/70001/chrome/common/pepper_permission_util.cc File chrome/common/pepper_permission_util.cc (right): https://codereview.chromium.org/264923011/diff/70001/chrome/common/pepper_permission_util.cc#newcode64 chrome/common/pepper_permission_util.cc:64: // We check the whitelist explicitly even though the ...
6 years, 7 months ago (2014-05-09 05:37:57 UTC) #21
elijahtaylor1
@sky: please CQ if you LGTM
6 years, 7 months ago (2014-05-09 06:13:05 UTC) #22
elijahtaylor1
On 2014/05/09 06:13:05, elijahtaylor1 wrote: > @sky: please CQ if you LGTM Actually, disregard this, ...
6 years, 7 months ago (2014-05-09 06:31:39 UTC) #23
sky
LGTM
6 years, 7 months ago (2014-05-09 14:20:23 UTC) #24
elijahtaylor1
rebased to include https://codereview.chromium.org/277463003/, added tsepez (security reviewer for that CL) to review to please ...
6 years, 7 months ago (2014-05-09 18:39:54 UTC) #25
Tom Sepez
LGTM given that profile_directory appears to be controlled by the browser.
6 years, 7 months ago (2014-05-09 19:27:17 UTC) #26
Tom Sepez
https://codereview.chromium.org/264923011/diff/130001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/264923011/diff/130001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode41 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:41: "6EAED1924DB611B6EEF2A664BD077BE7EAD33B8F", // see crbug.com/355141 nit: add http:// so various ...
6 years, 7 months ago (2014-05-09 19:27:31 UTC) #27
elijahtaylor1
https://codereview.chromium.org/264923011/diff/130001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/264923011/diff/130001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode41 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:41: "6EAED1924DB611B6EEF2A664BD077BE7EAD33B8F", // see crbug.com/355141 On 2014/05/09 19:27:32, Tom Sepez ...
6 years, 7 months ago (2014-05-09 19:31:24 UTC) #28
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 7 months ago (2014-05-09 19:32:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/264923011/150001
6 years, 7 months ago (2014-05-09 19:35:53 UTC) #30
elijahtaylor1
The CQ bit was checked by elijahtaylor@chromium.org
6 years, 7 months ago (2014-05-09 22:15:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/elijahtaylor@chromium.org/264923011/170001
6 years, 7 months ago (2014-05-09 22:20:28 UTC) #32
commit-bot: I haz the power
6 years, 7 months ago (2014-05-10 19:58:32 UTC) #33
Message was sent while issue was closed.
Change committed as 269626

Powered by Google App Engine
This is Rietveld 408576698