Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 826094 Details for
Bug 1032018
"Booting in insecure mode" message delays start
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Clarify the difference between a system without secure boot and user-initiated insecure mode
secure_mode.diff (text/plain), 1.42 KB, created by
Matthew Garrett
on 2013-11-19 15:07:48 UTC
(
hide
)
Description:
Clarify the difference between a system without secure boot and user-initiated insecure mode
Filename:
MIME Type:
Creator:
Matthew Garrett
Created:
2013-11-19 15:07:48 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/shim.c b/shim.c >index 9ae1936..524f5fc 100644 >--- a/shim.c >+++ b/shim.c >@@ -85,7 +85,7 @@ int loader_is_participating; > > #define EFI_IMAGE_SECURITY_DATABASE_GUID { 0xd719b2cb, 0x3d3a, 0x4596, { 0xa3, 0xbc, 0xda, 0xd0, 0x0e, 0x67, 0x65, 0x6f }} > >-UINT8 insecure_mode; >+UINT8 user_insecure_mode; > UINT8 ignore_db; > > typedef enum { >@@ -456,7 +456,7 @@ static BOOLEAN secure_mode (void) > UINT8 *Data; > UINT8 sb, setupmode; > >- if (insecure_mode) >+ if (user_insecure_mode) > return FALSE; > > status = get_variable(L"SecureBoot", &Data, &len, global_var); >@@ -1534,7 +1534,7 @@ static EFI_STATUS check_mok_sb (void) > UINTN MokSBStateSize = 0; > UINT32 attributes; > >- insecure_mode = 0; >+ user_insecure_mode = 0; > ignore_db = 0; > > status = get_variable_attr(L"MokSBState", &MokSBState, &MokSBStateSize, >@@ -1555,7 +1555,7 @@ static EFI_STATUS check_mok_sb (void) > status = EFI_ACCESS_DENIED; > } else { > if (*(UINT8 *)MokSBState == 1) { >- insecure_mode = 1; >+ user_insecure_mode = 1; > } > } > >@@ -1753,10 +1753,10 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab) > /* > * Tell the user that we're in insecure mode if necessary > */ >- if (!secure_mode()) { >+ if (user_insecure_mode) { > Print(L"Booting in insecure mode\n"); > uefi_call_wrapper(BS->Stall, 1, 2000000); >- } else { >+ } else if (secure_mode()) { > /* > * Install our hooks for ExitBootServices() and StartImage() > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1032018
:
826028
| 826094 |
832790