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

Unified Diff: bin/fix_pkcs11_token.sh

Issue 6312172: entd: Fix problem where a future date setting causes TPM token to be cleared often (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/entd.git@master
Patch Set: Better diagnostics for incomplete directly Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/fix_pkcs11_token.sh
diff --git a/bin/fix_pkcs11_token.sh b/bin/fix_pkcs11_token.sh
index 31ccf228dbf2f9a667a944d87fcebe1412598006..2f080f4feac6105c4fcd9adcf04b0865e302fee1 100755
--- a/bin/fix_pkcs11_token.sh
+++ b/bin/fix_pkcs11_token.sh
@@ -31,14 +31,10 @@ is_token_broken() {
return 0
fi
- if [ "/var/lib/.tpm_owned" -nt "$USER_TOKEN_DIR" ]; then
- log "PKCS#11 token for $USERNAME is from a previous TPM owner."
- return 0
- fi
-
if [ ! -e "$USER_TOKEN_DIR/PRIVATE_ROOT_KEY.pem" -o \
! -e "$USER_TOKEN_DIR/TOK_OBJ/70000000" ]; then
- log "PKCS#11 token for $USERNAME is missing some files."
+ log "PKCS#11 token for $USERNAME is missing some files. Possibly not yet"
+ log "initialized? TOK_OBJ contents were $(echo $USER_TOKEN_DIR/TOK_OBJ/*)."
return 0
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698