/* * Some MOKList keys may not pass the machine keyring restrictions. * If the restriction check does not pass and the platform keyring * is configured, try to add it into that keyring instead.
*/ if (rc && efi_enabled(EFI_BOOT) &&
IS_ENABLED(CONFIG_INTEGRITY_PLATFORM_KEYRING))
rc = integrity_load_cert(INTEGRITY_KEYRING_PLATFORM, source,
data, len, perm);
if (rc)
pr_info("Error adding keys to machine keyring %s\n", source);
}
/* * Try to load the MokListTrustedRT MOK variable to see if we should trust * the MOK keys within the kernel. It is not an error if this variable * does not exist. If it does not exist, MOK keys should not be trusted * within the machine keyring.
*/ static __init bool uefi_check_trust_mok_keys(void)
{ struct efi_mokvar_table_entry *mokvar_entry;
if (!initialized) {
initialized = true;
trust_mok = false;
if (uefi_check_trust_mok_keys())
trust_mok = true;
}
return trust_mok;
}
/* * Provides platform specific check for trusting imputed keys before loading * on .machine keyring. UEFI systems enable this trust based on a variable, * and for other platforms, it is always enabled.
*/ bool __init imputed_trust_enabled(void)
{ if (efi_enabled(EFI_BOOT)) return trust_moklist();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.