initrd/bin/kexec-unseal-key: never show final PCRs content but in DEBUG mode/Recovery Shell

Next steps on this is introspection and PCRs reconstruction helpers, which will output in DEBUG and be usable from recovery shell.
We have to keep in mind that providing those tools is useful in DEBUG mode and for users having access to Recovery Shell.
But currently, having access to cbmem -L output and final PCRs content is making it too easy for Evil Maid to know what needs to be hardcoded to pass measured boot.

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2024-01-19 12:34:37 -05:00
parent 6db03b0bdd
commit 4f2b1b68b0
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

@ -38,7 +38,7 @@ for tries in 1 2 3; do
exit 0
fi
pcrs
DEBUG $(pcrs)
warn "Unable to unseal disk encryption key"
done