mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +00:00
testing tpm clear
testing tpm clear
This commit is contained in:
parent
1a8e65b5f5
commit
aad0fb9c17
@ -72,7 +72,7 @@ function initTpm2Emulator {
|
||||
# Give tpm_server time to start and register on the DBus
|
||||
sleep 1
|
||||
|
||||
tpm2-abrmd -t socket &
|
||||
tpm2-abrmd -t &
|
||||
echo "TPM2-Abrmd started"
|
||||
|
||||
# Give ABRMD time to start and register on the DBus
|
||||
|
@ -67,11 +67,12 @@ popd > /dev/null
|
||||
# a: Clear the TPM PCR registers vi a call to the tss clear
|
||||
# b: Check if a test specific setpcr.sh file exists. If not use the profiles default script
|
||||
pushd /ibmtss/utils/
|
||||
echo "restarting the TPM simulator to reset the PCR values"
|
||||
# ./pcrreset -ha 16
|
||||
./shutdown
|
||||
./powerup
|
||||
echo "TPM simulator restarted"
|
||||
echo "clearing the PCR values"
|
||||
pkill -f "tpm2-abrmd"
|
||||
./pcrreset -ha 1 0
|
||||
/ibmtpm/src/./tpm_server &
|
||||
tpm2-abrmd -t socket &
|
||||
echo "TPM simulator cleared"
|
||||
popd
|
||||
|
||||
if [[ ! -f $pcrScript ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user