mirror of
https://github.com/linuxboot/heads.git
synced 2025-06-24 02:04:08 +00:00
tpmr: Add seal/unseal debug tracing
Trace parameters to seal/unseal and some key tpm2 invocations. Trace invocation of tpmr seal/unseal for disk unlock key. Add DO_WITH_DEBUG() to trace a command and parameters, then execute it. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
@ -44,7 +44,7 @@ for tries in 1 2 3; do
|
||||
|
||||
unseal_result=1
|
||||
if [ "$CONFIG_TPM2_TOOLS" = "y" ]; then
|
||||
tpmr unseal "0x8100000$TPM_INDEX" "sha256:0,1,2,3,4,5,6,7" "$key_file" "$tpm_password"
|
||||
DO_WITH_DEBUG tpmr unseal "0x8100000$TPM_INDEX" "sha256:0,1,2,3,4,5,6,7" "$key_file" "$tpm_password"
|
||||
unseal_result="$?"
|
||||
else
|
||||
tpm unsealfile \
|
||||
|
Reference in New Issue
Block a user