mirror of
https://github.com/edera-dev/sprout.git
synced 2026-06-21 23:50:51 +00:00
sprout: measure xen and dom0 payloads and cmdlines into PCRs 9/11/12
Extend PCR 9 with the initrd, PCR 11 with the dom0 kernel, and PCR 12 with the Xen options and dom0 cmdline. Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
@@ -38,6 +38,15 @@ impl PlatformTpm {
|
||||
/// The PCR for measuring the bootloader configuration into.
|
||||
pub const PCR_BOOT_LOADER_CONFIG: PcrIndex = PcrIndex(5);
|
||||
|
||||
/// The PCR for measuring the dom0 initrd payload into.
|
||||
pub const PCR_INITRD: PcrIndex = PcrIndex(9);
|
||||
|
||||
/// The PCR for measuring the dom0 kernel payload into.
|
||||
pub const PCR_KERNEL: PcrIndex = PcrIndex(11);
|
||||
|
||||
/// The PCR for measuring kernel command line and xen options into.
|
||||
pub const PCR_KERNEL_PARAMETERS: PcrIndex = PcrIndex(12);
|
||||
|
||||
/// Acquire access to the TPM protocol handle, if possible.
|
||||
/// Returns None if TPM is not available.
|
||||
fn protocol() -> Result<Option<TpmProtocolHandle>> {
|
||||
|
||||
Reference in New Issue
Block a user