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 --- shim.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index 98462aa0..bf0c9e6c 100644 --- a/shim.c +++ b/shim.c @@ -959,7 +959,6 @@ EFI_STATUS shim_verify (void *buffer, UINT32 size) if ((INT32)size < 0) return EFI_INVALID_PARAMETER; - loader_is_participating = 1; in_protocol = 1; efi_status = read_header(buffer, size, &context); @@ -1180,8 +1179,6 @@ EFI_STATUS start_image(EFI_HANDLE image_handle, CHAR16 *ImagePath) goto restore; } - loader_is_participating = 0; - /* * The binary is trusted and relocated. Run it */ @@ -1799,7 +1796,6 @@ shim_init(void) * validation of the next image. */ hook_system_services(systab); - loader_is_participating = 0; } } -- cgit v1.2.3