]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: selftest: cleanup after unseal with wrong auth/policy test
authorTadeusz Struk <tadeusz.struk@intel.com>
Thu, 12 Dec 2019 17:48:59 +0000 (09:48 -0800)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 17 Dec 2019 10:20:15 +0000 (12:20 +0200)
commite015d0123c5b40fab165a5c8983b3e6276e3c78f
treebf8894815b91654303d4872950fdfbc54344b125
parente8a10a797d70f47e6c6107e8aa941c8c161c6516
tpm: selftest: cleanup after unseal with wrong auth/policy test

Unseal with wrong auth or wrong policy test affects DA lockout
and eventually causes the tests to fail with:
"ProtocolError: TPM_RC_LOCKOUT: rc=0x00000921"
when the tests run multiple times.
Send tpm clear command after the test to reset the DA counters.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
tools/testing/selftests/tpm2/test_smoke.sh