diff options
| -rw-r--r-- | README.tpm | 1 | ||||
| -rw-r--r-- | mok.c | 16 |
2 files changed, 17 insertions, 0 deletions
@@ -19,6 +19,7 @@ PCR7: - shim_cert - shim's build-time generated allowlist, logged as "Shim" - MokSBState will be extended into PCR7 if it is set, logged as "MokSBState". +- SBAT will be extended into PCR7 if it is set, logged as "SBAT" PCR8: - If you're using the grub2 TPM patchset we cary in Fedora, the kernel command @@ -229,6 +229,22 @@ struct mok_state_variable mok_state_variables[] = { .no_attr = EFI_VARIABLE_RUNTIME_ACCESS, .state = &ignore_db, }, + {.name = L"SBAT", + .name8 = "SBAT", + .rtname = L"SbatRT", + .rtname8 = "SbatRT", + .guid = &SHIM_LOCK_GUID, + .yes_attr = EFI_VARIABLE_BOOTSERVICE_ACCESS | + EFI_VARIABLE_NON_VOLATILE, + /* + * we're enforcing that SBAT can't have an RT flag here because + * there's no way to tell whether it's an authenticated variable. + */ + .no_attr = EFI_VARIABLE_RUNTIME_ACCESS, + .flags = MOK_MIRROR_DELETE_FIRST | + MOK_VARIABLE_MEASURE, + .pcr = 7, + }, { NULL, } }; |
