Skip to content

Check secure boot config measurements against current variable contents #538

@chrisccoulson

Description

@chrisccoulson

checkSecureBootPolicyMeasurementsAndObtainAuthorities checks that the secure boot config measurements (EV_EFI_VARIABLE_DRIVER_CONFIG events) are well formed and that their digests are correct. What it doesn't do is verify that the event data matches the actual variable contents, and it should do.

This will need an opt out flag for the post-install case in the event that they are executed after applying a signature database update, as the variable contents will be inconsistent with the log in this case.

Unit testing for this is a bit challenging right now because the code in internal/efitest to generate mock TCG logs does not currently allow the secure boot configuration contents to be customized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    preinstall-checksRelated to the EFI preinstall checks in secboot

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions