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

Issue 8212003: [chromiumos] Start TPM token initialization re-tries on login (Closed)

Created:
9 years, 2 months ago by gauravsh
Modified:
9 years, 2 months ago
CC:
chromium-reviews, stevenjb, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[chromiumos] Start TPM token initialization re-tries on login The current TPM token setup logic attempts initialization once after the user logs in. Asynchronous attempts for TPM token setup are not triggered unless the user opens the VPN or WiFi config panel (attempt retries are triggered via a call to CertLibraryImpl::RequestCertificates()). This means that if the first attempt fails and the user never opens up the WiFi config or VPN config panel, the TPM token will stay uninitialized. This breaks the certificate manager (list of certs is empty), the SPDY proxy extension, amongst other things. Essentially, any part of the network subsystem that depends on the private hardware NSS slot (via crypto::GetPrivateNSSKeySlot) stays broken if the first attempt fails. (So, this is not just an issue with the list of certs not being displayed correctly). This CL changes that so that retry logic for TPM token init is triggered right after the user logs in. BUG=chromium-os:20933 TEST=Log in, verify from logs that TPM initialization attempts start immediately after. Verify that the missing certificates issue no longer happens. Change-Id: I9c609bdb198a88db8ceb2019cc92c19d1983bc05 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105136

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Remove RequestCertificates() call from wifi|vpn views. #

Total comments: 4

Patch Set 4 : Address wtc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M crypto/nss_util.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
gauravsh
For now this is just an RFC CL to figure out if going down this ...
9 years, 2 months ago (2011-10-09 00:17:27 UTC) #1
gauravsh
On 2011/10/09 00:17:27, gauravsh wrote: > For now this is just an RFC CL to ...
9 years, 2 months ago (2011-10-09 00:22:08 UTC) #2
stevenjb
One reason we didn't initialize the TPM on login originally is that it takes time ...
9 years, 2 months ago (2011-10-10 17:18:13 UTC) #3
stevenjb
I just spoke with kmixter@, and it sounds like the Chrome overhead for this should ...
9 years, 2 months ago (2011-10-10 17:53:35 UTC) #4
gauravsh
PTAL. I made changes to wifi|vpn_config_view to not make a call to RequestCertificates() but instead ...
9 years, 2 months ago (2011-10-10 20:55:49 UTC) #5
stevenjb
This looks great, just one question: If we do not provide kLoadOpencryptoki, will CertLibrary::CertificatesLoaded() return ...
9 years, 2 months ago (2011-10-11 16:44:09 UTC) #6
gauravsh
On Tue, Oct 11, 2011 at 9:44 AM, <stevenjb@chromium.org> wrote: > This looks great, just ...
9 years, 2 months ago (2011-10-11 17:04:59 UTC) #7
Greg Spencer (Chromium)
LGTM from my perspective.
9 years, 2 months ago (2011-10-11 17:13:38 UTC) #8
stevenjb
OK, cool, just wanted to double check that. LGTM
9 years, 2 months ago (2011-10-11 18:01:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/8212003/6001
9 years, 2 months ago (2011-10-12 00:08:33 UTC) #10
commit-bot: I haz the power
Presubmit check for 8212003-6001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-10-12 00:08:36 UTC) #11
gauravsh
Wan-Teh: I need OWNER approval. The (minor) change is to a Chrome OS specific piece ...
9 years, 2 months ago (2011-10-12 00:14:28 UTC) #12
wtc
Patch Set 3 LGTM. High-level comment: I believe we don't need to add the cert_library_ ...
9 years, 2 months ago (2011-10-12 17:20:34 UTC) #13
gauravsh
http://codereview.chromium.org/8212003/diff/6001/chrome/browser/chromeos/login/user_manager.cc File chrome/browser/chromeos/login/user_manager.cc (right): http://codereview.chromium.org/8212003/diff/6001/chrome/browser/chromeos/login/user_manager.cc#newcode771 chrome/browser/chromeos/login/user_manager.cc:771: cert_library_->RequestCertificates(); On 2011/10/12 17:20:34, wtc wrote: > > If ...
9 years, 2 months ago (2011-10-12 17:37:01 UTC) #14
wtc
Patch Set 4 LGTM. Thanks!
9 years, 2 months ago (2011-10-12 17:39:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/8212003/13002
9 years, 2 months ago (2011-10-12 17:39:57 UTC) #16
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 20:01:57 UTC) #17
Change committed as 105136

Powered by Google App Engine
This is Rietveld 408576698