mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-01 18:56:42 +00:00
kexec-select-boot/kexec-insert-key: add info message explaining why PCR 4 is extended
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
504f0336ac
commit
bfc877c49c
@ -49,6 +49,7 @@ if ! kexec-unseal-key "$INITRD_DIR/secret.key"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Override PCR 4 so that user can't read the key
|
# Override PCR 4 so that user can't read the key
|
||||||
|
echo " !!!!! Extending TPM PCR 4 to prevent further secret unsealing !!!!!"
|
||||||
tpmr extend -ix 4 -ic generic ||
|
tpmr extend -ix 4 -ic generic ||
|
||||||
die 'Unable to scramble PCR'
|
die 'Unable to scramble PCR'
|
||||||
|
|
||||||
|
@ -381,6 +381,7 @@ while true; do
|
|||||||
if [ "$CONFIG_TPM" = "y" ]; then
|
if [ "$CONFIG_TPM" = "y" ]; then
|
||||||
if [ ! -r "$TMP_KEY_DEVICES" ]; then
|
if [ ! -r "$TMP_KEY_DEVICES" ]; then
|
||||||
# Extend PCR4 as soon as possible
|
# Extend PCR4 as soon as possible
|
||||||
|
echo " !!!!! Extending TPM PCR 4 to prevent further secret unsealing !!!!!"
|
||||||
tpmr extend -ix 4 -ic generic ||
|
tpmr extend -ix 4 -ic generic ||
|
||||||
die "Failed to extend PCR 4"
|
die "Failed to extend PCR 4"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user