tpm2: log about invalid PCRs on each unsealing
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2021 10:43:53 +0000 (12:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2021 13:02:53 +0000 (15:02 +0200)
commitd38466bae68fe746c6052a4dd50e27de0274e52d
treeeda2ea5301d5123275a0fd533430357616f197d0
parent321a9d9ee5690ea57924b4724967812915c6c61d
tpm2: log about invalid PCRs on each unsealing

Let's log every time we use uninitialized PCRs when unsealing a secret
via TPM2. This indicates a firmware issue usually, and is something we
shouldn't just show when enrolling but also show every time we unseal,
so that the fact that the selected PCR policy is pretty much pointless
is repeatedly shown.
src/shared/tpm2-util.c