tpm2-util: properly load tpm2 libraries befre unsealing
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2021 09:46:19 +0000 (11:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 May 2021 11:51:55 +0000 (13:51 +0200)
commitdd91e0960f2c7195b557cbb9973a1f691d62c905
tree78a71cda752d022426635d132880f0d53cb2e356
parent907e0496c277b71140b944b27b3e531597ba7242
tpm2-util: properly load tpm2 libraries befre unsealing

We forgot a call to dlopen_tpm2() in the unseal codepaths. As long as
automatic TPM2 device discovery was used that didn't matter, since in
that codepaths we'd have another call dlopen_tpm2(). But with an
explicitly configured TPM2 device things should work too, hence add the
missing call.

Fixes: #19206
(cherry picked from commit 1b30720c1b22df75e147cc201f240db23881672d)
src/shared/tpm2-util.c