Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions crates/osutils/src/pcrlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ const BOOT_LOADER_CODE_SDBOOT_PCRLOCK_DIR: &str = "640-boot-loader-code-sdboot.p
/// into PCR 4,
const UKI_PCRLOCK_DIR: &str = "650-uki.pcrlock.d";

/// `/var/lib/pcrlock.d/655-uki-addons-<name>.pcrlock.d`, where `lock-pe` measures the UKI addons binaries, as recorded
/// into PCR 4. This needs to occur between 650-* and 660-* as the addons are loaded between the uki and the uki .linux
/// section.
const UKI_ADDONS_PCRLOCK_DIR_PREFIX: &str = "655-uki-addons-";
const UKI_ADDONS_PCRLOCK_DIR_SUFFIX: &str = ".pcrlock.d";

/// `/var/lib/pcrlock.d/660-boot-loader-code-uki.pcrlock.d`, where `lock-pe` measures the .linux
/// section of the UKI binary, as recorded into PCR 4 following Microsoft's Authenticode hash spec,
const BOOT_LOADER_CODE_UKI_PCRLOCK_DIR: &str = "660-boot-loader-code-uki.pcrlock.d";

Comment thread
bfjelds marked this conversation as resolved.
/// `/var/lib/pcrlock.d/670-uki-addons-<name>.pcrlock.d`, where `lock-pe` measures the UKI addons binaries, as recorded
/// into PCR 4.
const UKI_ADDONS_PCRLOCK_DIR_PREFIX: &str = "670-uki-addons-";
const UKI_ADDONS_PCRLOCK_DIR_SUFFIX: &str = ".pcrlock.d";

#[derive(Debug, Deserialize)]
struct PcrValue {
pcr: Pcr,
Expand Down
Loading