From 0322e10ecc0eb6a4acbea3f83f71b19a559aaec6 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 30 Jun 2023 14:48:17 -0400 Subject: Implement the rest of the loader protocol functions This adds an implementation of Exit() and UnloadImage(), removes the whole "loader_is_participating" mechanism and its supporting code, and removes DISABLE_EBS_PROTECTION. Signed-off-by: Peter Jones --- include/loader-proto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/loader-proto.h') diff --git a/include/loader-proto.h b/include/loader-proto.h index d3afa2f5..db8e670e 100644 --- a/include/loader-proto.h +++ b/include/loader-proto.h @@ -16,7 +16,6 @@ typedef enum { } verification_method_t; extern verification_method_t verification_method; -extern int loader_is_participating; extern void hook_system_services(EFI_SYSTEM_TABLE *local_systab); extern void unhook_system_services(void); @@ -27,6 +26,8 @@ extern void unhook_exit(void); typedef struct _SHIM_IMAGE_LOADER { EFI_IMAGE_LOAD LoadImage; EFI_IMAGE_START StartImage; + EFI_EXIT Exit; + EFI_IMAGE_UNLOAD UnloadImage; } SHIM_IMAGE_LOADER; extern SHIM_IMAGE_LOADER shim_image_loader_interface; -- cgit v1.2.3