You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs even if the computed pcrs are identical to the current pcrs. Luks unlock after writing to nvram with luks-tpm2 init works without a problem.
I'd be grateful about advice on how to fix this.
The text was updated successfully, but these errors were encountered:
I don't use this particular workflow on my system so it is difficult for me to reproduce this issue. I'm curious, though - if you change line 228 in luks-tpm2 from:
tpm2_nvdefine $tpm_auth_pass -L "$POLICY_DIGEST" -s $KEY_SIZE -a "policyread|policywrite" "$NVRAM_INDEX" >/dev/null
to:
tpm2_nvdefine $tpm_auth_pass -L "$POLICY_DIGEST" -s $KEY_SIZE -a "policyread|policywrite|ownerwrite" "$NVRAM_INDEX" >/dev/null
By adding |ownerwrite to the -a option, does that resolve the issue? Reading through the program flow, it looks like we are setting a policy that will not allow writes unless the new PCR values are already in place.
I am trying to replace a tpm key stored in nvram with a computed pcr as described in the README:
For some reason, this fails with a
tpm2_nvwrite
policy check failed
error.Here is the script running with
-x
set:This error occurs even if the computed pcrs are identical to the current pcrs. Luks unlock after writing to nvram with
luks-tpm2 init
works without a problem.I'd be grateful about advice on how to fix this.
The text was updated successfully, but these errors were encountered: