Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "tpm: selftest: cleanup after unseal with wrong auth/policy test"

The reverted commit illegitly uses tpm2-tools. External dependencies are
absolutely forbidden from these tests. There is also the problem that
clearing is not necessarily wanted behavior if the test/target computer is
not used only solely for testing.

Fixes: a9920d3bad40 ("tpm: selftest: cleanup after unseal with wrong auth/policy test")
Cc: Tadeusz Struk <tadeusz.struk@intel.com>
Cc: stable@vger.kernel.org
Cc: linux-integrity@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Jarkko Sakkinen and committed by
Shuah Khan
5be206ea 9ebcfadb

-5
-5
tools/testing/selftests/tpm2/test_smoke.sh
··· 8 8 9 9 python -m unittest -v tpm2_tests.SmokeTest 10 10 python -m unittest -v tpm2_tests.AsyncTest 11 - 12 - CLEAR_CMD=$(which tpm2_clear) 13 - if [ -n $CLEAR_CMD ]; then 14 - tpm2_clear -T device 15 - fi