File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -488,13 +488,16 @@ tpm1_seal() {
488
488
pcrf=" $4 "
489
489
sealed_size=" $5 "
490
490
pass=" $6 " # May be empty to seal with no password
491
- tpm_password =" $7 " # Owner password - will prompt if needed and not empty
491
+ tpm_owner_password =" $7 " # Owner password - will prompt if needed and not empty
492
492
493
493
sealed_file=" $SECRET_DIR /tpm1_seal_sealed.bin"
494
494
at_exit cleanup_shred " $sealed_file "
495
495
496
496
POLICY_ARGS=()
497
497
498
+ DEBUG " tpm1_seal arguments: file=$file index=$index pcrl=$pcrl pcrf=$pcrf sealed_size=$sealed_size pass=$( mask_param " $pass " ) tpm_password=$( mask_param " $tpm_password " ) "
499
+
500
+
498
501
# If a password was given, add it to the policy arguments
499
502
if [ " $pass " ]; then
500
503
POLICY_ARGS+=(-pwdd " $pass " )
@@ -516,7 +519,7 @@ tpm1_seal() {
516
519
-of " $sealed_file " \
517
520
-hk 40000000 \
518
521
" ${POLICY_ARGS[@]} "
519
-
522
+
520
523
# try it without the TPM Owner Password first
521
524
if ! tpm nv_writevalue -in " $index " -if " $sealed_file " ; then
522
525
# to create an nvram space we need the TPM Owner Password
@@ -530,7 +533,7 @@ tpm1_seal() {
530
533
prompt_tpm_owner_password
531
534
532
535
tpm nv_definespace -in " $index " -sz " $sealed_size " \
533
- -pwdo " $tpm_password " -per 0 ||
536
+ -pwdo " $tpm_owner_password " -per 0 ||
534
537
warn " Unable to define TPM NVRAM space; trying anyway"
535
538
536
539
tpm nv_writevalue -in " $index " -if " $sealed_file " ||
You can’t perform that action at this time.
0 commit comments