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

Issue 3107031: entd: Restart on token init failure (Closed)

Created:
10 years, 4 months ago by rginda
Modified:
9 years, 7 months ago
Reviewers:
Chris Masone
CC:
chromium-os-reviews_chromium.org, rginda, gauravsh
Base URL:
http://src.chromium.org/git/entd.git
Visibility:
Public.

Description

entd: Restart on token init failure This change causes us to restart entd if token initialization fails. The most common cause for token init to fail is a hardware timeout, which leaves the token in a state which we can't easily recover from. After this change (and changes in init and the ebuild), we will restart entd, detect and delete the broken token, and the user will be able to retry the initialization. BUG=None TEST=gmerge onto gadget, force a failure, and witness the recovery. Change-Id: Iaf7a8472392ffd928f3852262db49d378ca60fdd

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -13 lines) Patch
M base_policy/policy-utils.js View 4 chunks +11 lines, -2 lines 0 comments Download
A bin/fix_pkcs11_token.sh View 1 chunk +47 lines, -0 lines 1 comment Download
M reference_extension/client.js View 6 chunks +30 lines, -10 lines 0 comments Download
M reference_extension/options.html View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
rginda
10 years, 4 months ago (2010-08-23 23:45:43 UTC) #1
Chris Masone
On 2010/08/23 23:45:43, rginda wrote: > lgtm w/nit
10 years, 4 months ago (2010-08-23 23:56:16 UTC) #2
Chris Masone
10 years, 4 months ago (2010-08-23 23:56:28 UTC) #3
and this is the nit

http://codereview.chromium.org/3107031/diff/1/3
File bin/fix_pkcs11_token.sh (right):

http://codereview.chromium.org/3107031/diff/1/3#newcode23
bin/fix_pkcs11_token.sh:23: rm -rf $USER_TOKEN_DIR/*
perhaps "$USER_TOKEN_DIR"/*

to be as consistent as you can?

Powered by Google App Engine
This is Rietveld 408576698