Skip to content

Commit

Permalink
hup: hooks: silence tpm2_flushcontext trap while updating policy
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
  • Loading branch information
jakogut committed Dec 26, 2024
1 parent 68d0047 commit a3febb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [ "$(echo "${POLICIES}" | wc -w)" -gt 1 ]; then
update_reason="Combined policy in use"
fi

trap 'tpm2_flushcontext "${SESSION_CTX}"' EXIT
trap 'tpm2_flushcontext "${SESSION_CTX}" 2>/dev/null' EXIT

if tpm_nvram_retrieve_passphrase "session:${SESSION_CTX}" "${PASSPHRASE_FILE}"; then
echo "Retrieved passphrase from TPM NVRAM"
Expand Down

0 comments on commit a3febb6

Please sign in to comment.