efi: Add a function to read EFI variables with attributes
commitac5c9367548750e75ed1e7fc4354a3d20186d733
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 3 Dec 2020 15:01:47 +0000 (3 16:01 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 11 Dec 2020 12:55:31 +0000 (11 13:55 +0100)
tree2e918b1352c3e71bc8fe94435888152af3c1d05b
parent04ae030d0eea8668d4417702d88bf2cf04713d80
efi: Add a function to read EFI variables with attributes

It will be used to properly detect and report UEFI Secure Boot status to
the x86 Linux kernel. The functionality will be added by subsequent patches.

Signed-off-by: Ignat Korchagin <ignat@cloudflare.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Marco A Benatto <mbenatto@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/efi.c
include/grub/efi/efi.h