Skip to content

feat: patch in a subcommand for measuring efi vars#2

Open
Sebastian-Heinzenburger wants to merge 1 commit intomainfrom
feat/garden-linux-measure-efivars
Open

feat: patch in a subcommand for measuring efi vars#2
Sebastian-Heinzenburger wants to merge 1 commit intomainfrom
feat/garden-linux-measure-efivars

Conversation

@Sebastian-Heinzenburger
Copy link
Contributor

@Sebastian-Heinzenburger Sebastian-Heinzenburger commented Feb 13, 2026

What this PR does / why we need it:
This PR exposes a garden subcommand1 in pcr-oracle that takes efi variables that get measured into PCR7 as arguments. It then constructs EV_EFI_VARIABLE_DRIVER_CONFIG and EV_EFI_VARIABLE_AUTHORITY and computes their digests.

This allows the construction of hypothetical future event logs and the precomputation of PCR registers in combination with tools like systemd-pcrlock.

Usage:

pcr-oracle garden --efivar-db=db.efivar --efivar-kek=kek.efivar --efivar-pk=pk.efivar 

Which issue(s) this PR fixes:
n/a

Special notes for your reviewer:

The patched in C code may not be too elegant, but it works :)

Release note:

Addition of `garden` subcommand that computes the measurements of efi variables

Footnotes

  1. "naming things is hard"

corresponding TPM-events and then computes their measurement digests.
@Sebastian-Heinzenburger Sebastian-Heinzenburger requested a review from a team February 13, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant