]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/efi.h
UBUNTU: SAUCE: (efi-lockdown) efi: Add an EFI signature blob parser
authorDave Howells <dhowells@redhat.com>
Fri, 5 May 2017 07:21:58 +0000 (08:21 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:45:03 +0000 (07:45 -0600)
commit910132be50130f2e15aa50a19b67a792058c8525
treec6b308ad40fda39bc6c55949922b37a63a32b1a5
parent2b1afd9f2d575bc976f155b691cd5d5e20f6a3e5
UBUNTU: SAUCE: (efi-lockdown) efi: Add an EFI signature blob parser

Add a function to parse an EFI signature blob looking for elements of
interest.  A list is made up of a series of sublists, where all the
elements in a sublist are of the same type, but sublists can be of
different types.

For each sublist encountered, the function pointed to by the
get_handler_for_guid argument is called with the type specifier GUID and
returns either a pointer to a function to handle elements of that type or
NULL if the type is not of interest.

If the sublist is of interest, each element is passed to the handler
function in turn.

Signed-off-by: David Howells <dhowells@redhat.com>
(cherry picked from commit a0edbe5bff0d82e1495fde162bf36b51e0f56028
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
certs/Kconfig
certs/Makefile
certs/efi_parser.c [new file with mode: 0644]
include/linux/efi.h