Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DasharoVariablesLib: fix non-deterministic measurements #52

Merged
merged 1 commit into from
Jul 19, 2024

Commits on Jul 18, 2024

  1. DasharoVariablesLib: fix non-deterministic measurements

    This fixes "SecurityPkg: measure Dasharo variables before boot".
    
    gRT->GetNextVariableName() doesn't return variables in any fixed order.
    Seems like the order matches order in SMMSTORE.  This means that
    measuring variables while enumerating them will produce different
    results depending on which variables were update last (setting a
    variable in SMMSTORE is marking old entry as deleted and appending of a
    new one).  Sort list of variables that share the same GUID before
    measuring any of them to impose a fixed order.
    
    Also fix spacing in several places.
    
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    48b3775 View commit details
    Browse the repository at this point in the history