]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - certs/Kconfig
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>
Tue, 5 Sep 2017 12:34:08 +0000 (07:34 -0500)
commit608fcadc764a7ffe4e6cc9228c3f744d9bb353bc
treed740f6c83700082e48c3380044158088774f9588
parentfcc122f67818bef229261cb55566a5a4b01b6afa
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 cb3666f519f625a709b4a24f5a9307fb9ed4784a
 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