summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2016-02-08 14:48:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-16 08:41:37 -0700
commitd591b6da723e6b09b57a2b2386d00fe095bf034b (patch)
tree2d3e320448333230b59f2490c3b04d569820528e /include
parent44f21ed11c92f28b44fe283b8d0fd7899bc35430 (diff)
downloadlwn-d591b6da723e6b09b57a2b2386d00fe095bf034b.tar.gz
lwn-d591b6da723e6b09b57a2b2386d00fe095bf034b.zip
efi: Make our variable validation list include the guid
commit 8282f5d9c17fe15a9e658c06e3f343efae1a2a2f upstream. All the variables in this list so far are defined to be in the global namespace in the UEFI spec, so this just further ensures we're validating the variables we think we are. Including the guid for entries will become more important in future patches when we decide whether or not to allow deletion of variables based on presence in this list. Signed-off-by: Peter Jones <pjones@redhat.com> Tested-by: Lee, Chun-Yi <jlee@suse.com> Acked-by: Matthew Garrett <mjg59@coreos.com> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/efi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index 06cce30161c2..eb07711cb0f6 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -834,7 +834,8 @@ int efivar_entry_iter(int (*func)(struct efivar_entry *, void *),
struct efivar_entry *efivar_entry_find(efi_char16_t *name, efi_guid_t guid,
struct list_head *head, bool remove);
-bool efivar_validate(efi_char16_t *var_name, u8 *data, unsigned long len);
+bool efivar_validate(efi_guid_t vendor, efi_char16_t *var_name, u8 *data,
+ unsigned long data_size);
extern struct work_struct efivar_work;
void efivar_run_worker(void);