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

Issue 137553004: NSS Cros multiprofile: trust roots added by a profile shouldn't apply to other profiles. (Closed)

Created:
6 years, 11 months ago by mattm
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

NSS Cros multiprofile: trust roots added by a profile shouldn't apply to other profiles. BUG=218627 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249928

Patch Set 1 : . #

Total comments: 15

Patch Set 2 : review changes part1 #

Patch Set 3 : expanded test, found one problem #

Total comments: 8

Patch Set 4 : move to c/b/chromeos/net/, add TestRootCerts handling #

Patch Set 5 : handle additional trust roots, add TestRootCertsTest.Contains, remove instantiated certtests from c… #

Total comments: 42

Patch Set 6 : rebase #

Patch Set 7 : review changes for comment #10 #

Patch Set 8 : move filename const into test func that uses it to avoid undeclared error on other platforms #

Patch Set 9 : build fix #

Patch Set 10 : rebase #

Patch Set 11 : ios TestRootCerts fix #

Total comments: 6

Patch Set 12 : review changes for comment #12 #

Patch Set 13 : update ProfileIOData comment #

Total comments: 4

Patch Set 14 : changes for #16 and #17 #

Patch Set 15 : remove attempt to implement TestRootCerts on IOS too #

Patch Set 16 : ios fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1463 lines, -96 lines) Patch
A chrome/browser/chromeos/net/cert_verify_proc_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/cert_verify_proc_chromeos_unittest.cc View 1 2 3 4 5 6 1 chunk +373 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/cert_verify_proc_nss.h View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M net/cert/cert_verify_proc_nss.cc View 1 2 3 4 5 6 10 chunks +54 lines, -9 lines 0 comments Download
M net/cert/cert_verify_proc_openssl.cc View 1 2 3 1 chunk +2 lines, -8 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos.h View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -2 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos.cc View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -10 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -17 lines 0 comments Download
M net/cert/test_root_certs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +11 lines, -2 lines 0 comments Download
M net/cert/test_root_certs_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -0 lines 0 comments Download
M net/cert/test_root_certs_openssl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M net/cert/test_root_certs_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +33 lines, -0 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/multi-root-chain1.pem View 1 2 3 4 5 6 1 chunk +328 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/multi-root-chain2.pem View 1 2 3 4 5 6 1 chunk +328 lines, -0 lines 0 comments Download
A + net/data/ssl/scripts/generate-multi-root-test-chains.sh View 1 2 3 4 5 6 6 chunks +46 lines, -33 lines 0 comments Download
M net/ssl/client_cert_store_chromeos_unittest.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
mattm
This just addresses the simple case which should be "good enough" for multiprofiles to launch. ...
6 years, 11 months ago (2014-01-22 00:21:39 UTC) #1
mattm
On 2014/01/22 00:21:39, mattm wrote: > This just addresses the simple case which should be ...
6 years, 11 months ago (2014-01-22 00:31:41 UTC) #2
Ryan Sleevi
On 2014/01/22 00:31:41, mattm wrote: > On 2014/01/22 00:21:39, mattm wrote: > > This just ...
6 years, 11 months ago (2014-01-22 00:41:34 UTC) #3
Ryan Sleevi
I cannot convince myself this is correct with respect to NSS's internal caches of chain ...
6 years, 11 months ago (2014-01-22 00:43:47 UTC) #4
Ryan Sleevi
Also, few requests for liberal documentation. Easier to err on too much documentation than too ...
6 years, 11 months ago (2014-01-22 00:46:58 UTC) #5
mattm
I expanded the test some (and moved it to net/cert/cert_verify_proc_chromeos_unittest.cc). I did run into a ...
6 years, 11 months ago (2014-01-24 04:47:30 UTC) #6
Ryan Sleevi
On 2014/01/24 04:47:30, mattm wrote: > I expanded the test some (and moved it to ...
6 years, 11 months ago (2014-01-25 01:50:16 UTC) #7
mattm
So there are still two problem cases I found: 1) Passing additional trust roots to ...
6 years, 10 months ago (2014-01-28 04:36:43 UTC) #8
mattm
On 2014/01/28 04:36:43, mattm wrote: > So there are still two problem cases I found: ...
6 years, 10 months ago (2014-01-28 06:02:32 UTC) #9
Ryan Sleevi
https://codereview.chromium.org/137553004/diff/30001/net/cert/cert_verify_proc_chromeos.h File net/cert/cert_verify_proc_chromeos.h (right): https://codereview.chromium.org/137553004/diff/30001/net/cert/cert_verify_proc_chromeos.h#newcode22 net/cert/cert_verify_proc_chromeos.h:22: // cert but with different trust values). On 2014/01/28 ...
6 years, 10 months ago (2014-01-30 05:27:39 UTC) #10
mattm
https://codereview.chromium.org/137553004/diff/490001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc File chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc (right): https://codereview.chromium.org/137553004/diff/490001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc#newcode70 chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc:70: if (root_certs->Contains(cert)) { On 2014/01/30 05:27:40, Ryan Sleevi wrote: ...
6 years, 10 months ago (2014-02-04 05:31:20 UTC) #11
Ryan Sleevi
LGTM, mod nits. https://codereview.chromium.org/137553004/diff/1410001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h File chrome/browser/chromeos/net/cert_verify_proc_chromeos.h (right): https://codereview.chromium.org/137553004/diff/1410001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h#newcode42 chrome/browser/chromeos/net/cert_verify_proc_chromeos.h:42: static SECStatus IsChainValidFunc(void* is_chain_valid_arg, Document https://codereview.chromium.org/137553004/diff/1410001/chrome/browser/chromeos/net/cert_verify_proc_chromeos_unittest.cc ...
6 years, 10 months ago (2014-02-07 01:38:28 UTC) #12
mattm
https://codereview.chromium.org/137553004/diff/1410001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h File chrome/browser/chromeos/net/cert_verify_proc_chromeos.h (right): https://codereview.chromium.org/137553004/diff/1410001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h#newcode42 chrome/browser/chromeos/net/cert_verify_proc_chromeos.h:42: static SECStatus IsChainValidFunc(void* is_chain_valid_arg, On 2014/02/07 01:38:28, Ryan Sleevi ...
6 years, 10 months ago (2014-02-07 03:38:03 UTC) #13
mattm
adding OWNERS: derat: chrome/browser/chromeos/net/ pneubeck: chrome/browser/chromeos/policy/ mmenke: chrome/browser/profiles/ thestig: chrome/browser/io_thread.cc
6 years, 10 months ago (2014-02-07 03:57:50 UTC) #14
Lei Zhang
c/b/io_thread.cc lgtm
6 years, 10 months ago (2014-02-07 05:35:02 UTC) #15
pneubeck (no reviews)
chrome/browser/chromeos/policy/ and profile_io_data.cc lgtm https://codereview.chromium.org/137553004/diff/1650001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/137553004/diff/1650001/chrome/browser/profiles/profile_io_data.cc#newcode980 chrome/browser/profiles/profile_io_data.cc:980: cert_verifier_->InitializeOnIOThread(verify_proc.get()); why .get() ? InitializeOnIOThread ...
6 years, 10 months ago (2014-02-07 09:33:50 UTC) #16
Daniel Erat
lgtm as a chrome/browser/chromeos/net OWNER (seeing that rsleevi has already reviewed the cert logic) https://codereview.chromium.org/137553004/diff/1650001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h ...
6 years, 10 months ago (2014-02-07 16:29:27 UTC) #17
mattm
https://codereview.chromium.org/137553004/diff/1650001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h File chrome/browser/chromeos/net/cert_verify_proc_chromeos.h (right): https://codereview.chromium.org/137553004/diff/1650001/chrome/browser/chromeos/net/cert_verify_proc_chromeos.h#newcode34 chrome/browser/chromeos/net/cert_verify_proc_chromeos.h:34: virtual int VerifyInternal( On 2014/02/07 16:29:28, Daniel Erat wrote: ...
6 years, 10 months ago (2014-02-07 22:13:53 UTC) #18
mmenke
profiles/ LGTM
6 years, 10 months ago (2014-02-07 22:31:51 UTC) #19
mattm
The CQ bit was checked by mattm@chromium.org
6 years, 10 months ago (2014-02-07 22:51:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/137553004/1870001
6 years, 10 months ago (2014-02-07 22:52:49 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 23:43:11 UTC) #22
commit-bot: I haz the power
Retried try job too often on ios_rel_device for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device&number=114880
6 years, 10 months ago (2014-02-07 23:43:11 UTC) #23
mattm
The CQ bit was checked by mattm@chromium.org
6 years, 10 months ago (2014-02-07 23:55:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/137553004/2200001
6 years, 10 months ago (2014-02-07 23:55:50 UTC) #25
commit-bot: I haz the power
6 years, 10 months ago (2014-02-08 04:00:44 UTC) #26
Message was sent while issue was closed.
Change committed as 249928

Powered by Google App Engine
This is Rietveld 408576698