]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: SAUCE: (lockdown) Make get_cert_list() use efi_status_to_str() to print error...
authorPeter Jones <pjones@redhat.com>
Mon, 2 Oct 2017 22:18:30 +0000 (18:18 -0400)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 25 Nov 2019 13:56:44 +0000 (14:56 +0100)
Signed-off-by: Peter Jones <pjones@redhat.com>
(cherry picked from commit 12615d1a90d1cf5df8ee662b96e1f27a518ef5e7
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/integrity/platform_certs/load_uefi.c

index e188f3ecbce3af7ec6f89b9cc757ce4913eb273d..4241accc740e7544fd620d1210bfceb2fb0dbcf9 100644 (file)
@@ -54,7 +54,8 @@ static __init int get_cert_list(efi_char16_t *name, efi_guid_t *guid,
        }
 
        if (status != EFI_BUFFER_TOO_SMALL) {
-               pr_err("Couldn't get size: 0x%lx\n", status);
+               pr_err("Couldn't get size: %s (0x%lx)\n",
+                      efi_status_to_str(status), status);
                return efi_status_to_err(status);
        }
 
@@ -65,7 +66,8 @@ static __init int get_cert_list(efi_char16_t *name, efi_guid_t *guid,
        status = efi.get_variable(name, guid, NULL, &lsize, db);
        if (status != EFI_SUCCESS) {
                kfree(db);
-               pr_err("Error reading db var: 0x%lx\n", status);
+               pr_err("Error reading db var: %s (0x%lx)\n",
+                      efi_status_to_str(status), status);
                return efi_status_to_err(status);
        }