diff options
| author | Peter Jones <pjones@redhat.com> | 2013-10-04 15:31:48 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-04 15:31:48 -0400 |
| commit | 98a9957866b31d0ca457961932a9f997068f3ab3 (patch) | |
| tree | 2ecf92366812e1efc47ada07004b607a0a39d03a /shim.c | |
| parent | 29d9c7c32799b3f9d95c8c971af827a049931801 (diff) | |
| download | efi-boot-shim-98a9957866b31d0ca457961932a9f997068f3ab3.tar.gz efi-boot-shim-98a9957866b31d0ca457961932a9f997068f3ab3.zip | |
Unhook system services as we exit.
If we never find a valid thing to boot, we need to undo the weird things
we've done.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.c')
| -rw-r--r-- | shim.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1767,18 +1767,24 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab) efi_status = init_grub(image_handle); +#if defined(OVERRIDE_SECURITY_POLICY) + /* + * Clean up the security protocol hook + */ + security_policy_uninstall(); +#endif + /* * If we're back here then clean everything up before exiting */ uefi_call_wrapper(BS->UninstallProtocolInterface, 3, handle, &shim_lock_guid, &shim_lock_interface); -#if defined(OVERRIDE_SECURITY_POLICY) + /* - * Clean up the security protocol hook + * Remove our hooks from system services. */ - security_policy_uninstall(); -#endif + unhook_system_services(); /* * Free the space allocated for the alternative 2nd stage loader |
