]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptenroll: add tests for TPM2 unlocking 22563/head
authorGrigori Goronzy <greg@chown.ath.cx>
Thu, 24 Feb 2022 00:28:29 +0000 (01:28 +0100)
committerGrigori Goronzy <greg@chown.ath.cx>
Tue, 15 Mar 2022 20:17:00 +0000 (21:17 +0100)
commitfd8b9248206734b655de503f8bb16c2d154934ed
treeb2d0779a4296bb88604a654567bed460ad352a3a
parent4005d41ef0d007021deb0536800fc782ff670420
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
test/TEST-70-TPM2/Makefile [new file with mode: 0644]
test/TEST-70-TPM2/test.sh [new file with mode: 0755]
test/test-functions
test/units/testsuite-70.service [new file with mode: 0644]
test/units/testsuite-70.sh [new file with mode: 0755]