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

Add features for the Host Security ID program #660

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on May 15, 2024

  1. mok: add MOK_VARIABLE_CONFIG_ONLY

    This adds a mok variable flag "MOK_VARIABLE_CONFIG_ONLY" to specify that
    the data should be added to our UEFI config table, but shim should not
    create a legacy UEFI variable.
    
    Signed-off-by: Peter Jones <pjones@redhat.com>
    vathpela committed May 15, 2024
    Configuration menu
    Copy the full SHA
    2f8268d View commit details
    Browse the repository at this point in the history
  2. mok variables: add a format callback

    This adds a member to the mok_state_variable struct to provide a
    callback function for formatting external data.  It basically has
    snprintf()-like semantics for filling the buffer, but without the actual
    printf-like formatting bits.
    
    Signed-off-by: Peter Jones <pjones@redhat.com>
    vathpela committed May 15, 2024
    Configuration menu
    Copy the full SHA
    1774e0f View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. shim: add HSIStatus feature

    hughsie asked me if I can make shim tell userland what kinds of accesses
    are allowed to the heap, stack, and allocations on the running platform,
    so that these could be reported up through fwupd's Host Security ID
    program (see https://fwupd.github.io/libfwupdplugin/hsi.html ).
    
    This adds a new config-only (i.e. not a UEFI variable) variable
    generated during boot, "/sys/firmware/efi/mok-variables/HSIStatus",
    which tells us those properties as well as if the EFI Memory Attribute
    Protocol is present.
    
    Signed-off-by: Peter Jones <pjones@redhat.com>
    vathpela committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d20c801 View commit details
    Browse the repository at this point in the history