efi: Set shim_lock_enabled even if validation is disabled
PATCH 1/1 efi: Set shim_lock_enabled even if validation is disabled
If validation has been disabled via MokSbState, secure boot on the firmware is still enabled, and the kernel fails to boot.
This is a bit hacky, because shim_lock is not *fully* enabled, but it triggers the right code paths.
Ultimately, all this will be resolved by shim gaining it's own image loading and starting protocol, so this is more a temporary workaround.
--- grub-core/kern/efi/sb.c | 1 + 1 file changed, 1 insertion(+)
grub-core/kern/efi/sb.c +1 -0
@@ -95,6 +95,7 @@ grub_efi_get_secureboot (void)if (!(attr &GRUB_EFI_VARIABLE_RUNTIME_ACCESS ) && *moksbstate ==1 ) { secureboot =GRUB_EFI_SECUREBOOT_MODE_DISABLED ; + shim_lock_enabled = true; goto out; }
Signature · 1 line
2.40.1
Quoted 10 lines · Julian Andres Klode
If validation has been disabled via MokSbState, secure boot on the firmware is still enabled, and the kernel fails to boot.
This is a bit hacky, because
shim_lockis not *fully* enabled, but it triggers the right code paths.Ultimately, all this will be resolved by shim gaining it's own image loading and starting protocol, so this is more a temporary workaround.
Fixes 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)
Ping, this is kind of a blocker for 2.12
Signature · 7 lines
debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 21 lines · Julian Andres Klode
If validation has been disabled via MokSbState, secure boot on the firmware is still enabled, and the kernel fails to boot.
This is a bit hacky, because
shim_lockis not *fully* enabled, but it triggers the right code paths.Ultimately, all this will be resolved by shim gaining it's own image loading and starting protocol, so this is more a temporary workaround.
Fixes 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)Signed-off-by Julian Andres Klode <[email protected]>--- grub-core/kern/efi/sb.c | 1 + 1 file changed, 1 insertion(+)grub-core/kern/efi/sb.c +0
-0
grub-core/kern/efi/sb.c grub_efi_get_secureboot (void) · line 98
Quoted 4 lines
grub-core/kern/efi/sb.c +1
-0@@ -95,6 +95,7 @@ grub_efi_get_secureboot (void)if (!(attr &GRUB_EFI_VARIABLE_RUNTIME_ACCESS ) && *moksbstate ==1 ) { secureboot =GRUB_EFI_SECUREBOOT_MODE_DISABLED ; + shim_lock_enabled = true;
I am not happy with this change but I understand we need it. So, I will accept the change but it has to be marked as "TODO" thing in the comment. Additionally, the comment has to explain why we need it. Please do not forget CC distro maintainers and other folks who may be interested in this change. If you do that you can add my RB.
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 17 lines · Daniel Kiper
Quoted 16 lines · Julian Andres Klode
If validation has been disabled via MokSbState, secure boot on the firmware is still enabled, and the kernel fails to boot.
This is a bit hacky, because
shim_lockis not *fully* enabled, but it triggers the right code paths.Ultimately, all this will be resolved by shim gaining it's own image loading and starting protocol, so this is more a temporary workaround.
Fixes 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)Signed-off-by Julian Andres Klode <[email protected]>--- grub-core/kern/efi/sb.c | 1 + 1 file changed, 1 insertion(+)
Quoted 15 lines
grub-core/kern/efi/sb.c grub_efi_get_secureboot (void) · line 98
Quoted 9 lines
grub-core/kern/efi/sb.c +1
-0@@ -95,6 +95,7 @@ grub_efi_get_secureboot (void)if (!(attr &GRUB_EFI_VARIABLE_RUNTIME_ACCESS ) && *moksbstate ==1 ) { secureboot =GRUB_EFI_SECUREBOOT_MODE_DISABLED ; + shim_lock_enabled = true;I am not happy with this change but I understand we need it. So, I will accept the change but it has to be marked as "TODO" thing in the comment. Additionally, the comment has to explain why we need it. Please do not forget CC distro maintainers and other folks who may be interested in this change. If you do that you can add my RB.
I just found this email today while actively searching my notmuch for replies to my threads, it somehow got filtered out of the inbox.
I do not know who to CC tbh. I do not have a giant list of grub maintainers from all distributions; and I would expect they'd be required to be subscribed here anyhow...
Signature · 7 lines
debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 34 lines · Julian Andres Klode
Quoted 17 lines · Daniel Kiper
Quoted 16 lines · Julian Andres Klode
If validation has been disabled via MokSbState, secure boot on the firmware is still enabled, and the kernel fails to boot.
This is a bit hacky, because
shim_lockis not *fully* enabled, but it triggers the right code paths.Ultimately, all this will be resolved by shim gaining it's own image loading and starting protocol, so this is more a temporary workaround.
Fixes 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)Signed-off-by Julian Andres Klode <[email protected]>--- grub-core/kern/efi/sb.c | 1 + 1 file changed, 1 insertion(+)Quoted 15 lines
grub-core/kern/efi/sb.c grub_efi_get_secureboot (void) · line 98
Quoted 9 lines
grub-core/kern/efi/sb.c +1
-0@@ -95,6 +95,7 @@ grub_efi_get_secureboot (void)if (!(attr &GRUB_EFI_VARIABLE_RUNTIME_ACCESS ) && *moksbstate ==1 ) { secureboot =GRUB_EFI_SECUREBOOT_MODE_DISABLED ; + shim_lock_enabled = true;I am not happy with this change but I understand we need it. So, I will accept the change but it has to be marked as "TODO" thing in the comment. Additionally, the comment has to explain why we need it. Please do not forget CC distro maintainers and other folks who may be interested in this change. If you do that you can add my RB.
Quoted 6 lines
I just found this email today while actively searching my notmuch for replies to my threads, it somehow got filtered out of the inbox.
I do not know who to CC tbh. I do not have a giant list of grub maintainers from all distributions; and I would expect they'd be required to be subscribed here anyhow...
My experience is that people usually do not care if they are not CC-ed. So, please just CC folks who you are aware can be interested in taking a look at this patch. I do not expect this list will be exhaustive.
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel