diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2022-02-24 01:28:29 +0100 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2022-03-15 21:17:00 +0100 |
commit | fd8b9248206734b655de503f8bb16c2d154934ed (patch) | |
tree | b2d0779a4296bb88604a654567bed460ad352a3a /test/test-functions | |
parent | 4005d41ef0d007021deb0536800fc782ff670420 (diff) | |
download | systemd-fd8b9248206734b655de503f8bb16c2d154934ed.tar.gz |
cryptenroll: add tests for TPM2 unlocking
Add tests for enrolling and unlocking. Various cases are tested:
- Default PCR 7 policy w/o PIN, good and bad cases (wrong PCR)
- PCR 7 + PIN policy, good and bad cases (wrong PCR, wrong PIN)
- Non-default PCR 0+7 policy w/o PIN, good and bad cases (wrong PCR 0)
v2: rename test, fix tss2 library installation, fix CI failures
v3: fix ppc64, load module
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions index e815ce1c58..6619a7a44b 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1213,7 +1213,7 @@ install_missing_libraries() { local lib path # A number of dependencies is now optional via dlopen, so the install # script will not pick them up, since it looks at linkage. - for lib in libcryptsetup libidn libidn2 pwquality libqrencode tss2-esys tss2-rc tss2-mu libfido2 libbpf libelf libdw; do + for lib in libcryptsetup libidn libidn2 pwquality libqrencode tss2-esys tss2-rc tss2-mu tss2-tcti-device libfido2 libbpf libelf libdw; do ddebug "Searching for $lib via pkg-config" if pkg-config --exists "$lib"; then path="$(pkg-config --variable=libdir "$lib")" |