summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2023-06-30 14:48:17 -0400
committerPeter Jones <pjones@redhat.com>2025-02-11 10:43:37 -0500
commit0322e10ecc0eb6a4acbea3f83f71b19a559aaec6 (patch)
treec5daa94ef2a0830234c921cf8f3d07fd9142c87d /shim.c
parente7b3598311c4b002417ac6364093cfab218ced88 (diff)
downloadefi-boot-shim-0322e10ecc0eb6a4acbea3f83f71b19a559aaec6.tar.gz
efi-boot-shim-0322e10ecc0eb6a4acbea3f83f71b19a559aaec6.zip
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 <pjones@redhat.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c4
1 files changed, 0 insertions, 4 deletions
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;
}
}