diff options
| author | Matthew Garrett <matthew.garrett@nebula.com> | 2013-11-19 10:09:13 -0500 |
|---|---|---|
| committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-11-19 10:20:34 -0500 |
| commit | d95b24bd02cf41cca9adebd95f10609d6424d2b3 (patch) | |
| tree | 926c2c38d7ee6661658cb8a7618b4e1483caf2e6 /replacements.c | |
| parent | 2f09d0ab290d9b0d8aa14c3243f1d85a20bc34e6 (diff) | |
| download | efi-boot-shim-d95b24bd02cf41cca9adebd95f10609d6424d2b3.tar.gz efi-boot-shim-d95b24bd02cf41cca9adebd95f10609d6424d2b3.zip | |
Clarify meaning of insecure_mode
insecure_mode was intended to indicate that the user had explicity disabled
checks with mokutil, which means it wasn't the opposite of secure_mode().
Change the names to clarify this and don't show the insecure mode message
unless the user has explicitly enabled that mode.
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'replacements.c')
| -rw-r--r-- | replacements.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/replacements.c b/replacements.c index bac5e5d7..5ea5c327 100644 --- a/replacements.c +++ b/replacements.c @@ -64,13 +64,9 @@ static typeof(systab->BootServices->StartImage) system_start_image; static typeof(systab->BootServices->Exit) system_exit; static typeof(systab->BootServices->ExitBootServices) system_exit_boot_services; -extern UINT8 insecure_mode; - void unhook_system_services(void) { - if (insecure_mode) - return; systab->BootServices->Exit = system_exit; systab->BootServices->StartImage = system_start_image; systab->BootServices->ExitBootServices = system_exit_boot_services; @@ -123,8 +119,6 @@ exit(EFI_HANDLE ImageHandle, EFI_STATUS ExitStatus, void hook_system_services(EFI_SYSTEM_TABLE *local_systab) { - if (insecure_mode) - return; systab = local_systab; /* We need to hook various calls to make this work... */ |
