aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJavier Martinez Canillas <[email protected]>2020-02-17 12:39:47 +0100
committerMimi Zohar <[email protected]>2020-02-18 07:35:48 -0500
commit3be54d558c75562e42bc83d665df024bd79d399b (patch)
treef8949427089e09acd45ed4254427521dc840cd1c /tools/perf/scripts/python/export-to-sqlite.py
parentff5ac61ee83c13f516544d29847d28be093a40ee (diff)
efi: Only print errors about failing to get certs if EFI vars are found
If CONFIG_LOAD_UEFI_KEYS is enabled, the kernel attempts to load the certs from the db, dbx and MokListRT EFI variables into the appropriate keyrings. But it just assumes that the variables will be present and prints an error if the certs can't be loaded, even when is possible that the variables may not exist. For example the MokListRT variable will only be present if shim is used. So only print an error message about failing to get the certs list from an EFI variable if this is found. Otherwise these printed errors just pollute the kernel log ring buffer with confusing messages like the following: [ 5.427251] Couldn't get size: 0x800000000000000e [ 5.427261] MODSIGN: Couldn't get UEFI db list [ 5.428012] Couldn't get size: 0x800000000000000e [ 5.428023] Couldn't get UEFI MokListRT Reported-by: Hans de Goede <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Tested-by: Hans de Goede <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions