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

Unified Diff: bin/entdwife.sh

Issue 6821025: entd: move opencryptoki initialization out of entd (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/entd.git@master
Patch Set: switch to using a flag to expect cryptohome to init pkcs11 Created 9 years, 8 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 | « base_policy/policy-utils.js ('k') | main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/entdwife.sh
diff --git a/bin/entdwife.sh b/bin/entdwife.sh
index 8fd3aa9baede9196ffc9aacde4e72b51382bba06..b1297be54575ff6060c0e8fe99184c48c00aa4c3 100755
--- a/bin/entdwife.sh
+++ b/bin/entdwife.sh
@@ -269,9 +269,14 @@ cmd_start() {
local extid="$(basename $(dirname "$extension"))"
+ local cryptohome_flag=""
+ if [ -r "/home/chronos/.cryptohome-init-pkcs11" ]; then
+ cryptohome_flag="--cryptohome-init-pkcs11"
+ fi
exec "$FLAGS_entd" --utility="$FLAGS_utility" "$root_ca_option" \
--policy="$extension/policy.js" --manifest="$extension/manifest.json" \
- --username="$FLAGS_username" --callback-origin=chrome-extension://"$extid"
+ --username="$FLAGS_username" --callback-origin=chrome-extension://"$extid" \
+ $cryptohome_flag
}
cmd_disapprove() {
« no previous file with comments | « base_policy/policy-utils.js ('k') | main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698