diff options
| author | Matthew Garrett <matthew.garrett@nebula.com> | 2013-11-19 10:20:34 -0500 |
|---|---|---|
| committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-11-19 10:20:34 -0500 |
| commit | e60f118155e55f33c3ea9045abc2c43851d82516 (patch) | |
| tree | 926c2c38d7ee6661658cb8a7618b4e1483caf2e6 /replacements.c | |
| parent | acacfca319119bb86c32674034edab42df670619 (diff) | |
| download | efi-boot-shim-e60f118155e55f33c3ea9045abc2c43851d82516.tar.gz efi-boot-shim-e60f118155e55f33c3ea9045abc2c43851d82516.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... */ |
