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
|
# Give tpm_server time to start and register on the DBus
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
tpm2-abrmd -t socket &
|
tpm2-abrmd -t &
|
||||||
echo "TPM2-Abrmd started"
|
echo "TPM2-Abrmd started"
|
||||||
|
|
||||||
# Give ABRMD time to start and register on the DBus
|
# 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
|
# 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
|
# b: Check if a test specific setpcr.sh file exists. If not use the profiles default script
|
||||||
pushd /ibmtss/utils/
|
pushd /ibmtss/utils/
|
||||||
echo "restarting the TPM simulator to reset the PCR values"
|
echo "clearing the PCR values"
|
||||||
# ./pcrreset -ha 16
|
pkill -f "tpm2-abrmd"
|
||||||
./shutdown
|
./pcrreset -ha 1 0
|
||||||
./powerup
|
/ibmtpm/src/./tpm_server &
|
||||||
echo "TPM simulator restarted"
|
tpm2-abrmd -t socket &
|
||||||
|
echo "TPM simulator cleared"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if [[ ! -f $pcrScript ]]; then
|
if [[ ! -f $pcrScript ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user