summaryrefslogtreecommitdiff
path: root/mok.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-11 16:44:46 -0500
committerJavier Martinez Canillas <javier@dowhile0.org>2021-03-12 10:15:01 +0100
commit076de43a0f871d9e6b6d48e013f01616e4fb1eea (patch)
treec471e199cb69e6e66422f56427b589e916dae832 /mok.c
parentb5a7c8ce6012ec8d5f9f2515537f918ef4ca9358 (diff)
downloadefi-boot-shim-076de43a0f871d9e6b6d48e013f01616e4fb1eea.tar.gz
efi-boot-shim-076de43a0f871d9e6b6d48e013f01616e4fb1eea.zip
Make ENABLE_SHIM_DEVEL work better.
This fixes ENABLE_SHIM_DEVEL to actually work, and also makes our "goto die" failure behavior change (to wait considerably longer) based on it. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'mok.c')
-rw-r--r--mok.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mok.c b/mok.c
index be477c48..048d38d5 100644
--- a/mok.c
+++ b/mok.c
@@ -236,7 +236,11 @@ struct mok_state_variable mok_state_variables[] = {
* we're enforcing that SBAT can't have an RT flag here because
* there's no way to tell whether it's an authenticated variable.
*/
+#if !defined(ENABLE_SHIM_DEVEL)
.no_attr = EFI_VARIABLE_RUNTIME_ACCESS,
+#else
+ .no_attr = 0,
+#endif
.flags = MOK_MIRROR_DELETE_FIRST |
MOK_VARIABLE_MEASURE,
.pcr = 7,