summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2021-01-04 12:38:23 -0600
committerJustin M. Forbes <jforbes@fedoraproject.org>2021-01-04 12:38:23 -0600
commitcce64069888d52c5365655bb58dbf4845619c5d3 (patch)
treeba377b8cf7dd7ffa87ad05dbb56fcacb0f99263b
parenta7f5e8cd7c841fb737893128d30ccc29d52cf4e2 (diff)
downloadkernel-cce64069888d52c5365655bb58dbf4845619c5d3.tar.gz
kernel-cce64069888d52c5365655bb58dbf4845619c5d3.tar.xz
kernel-cce64069888d52c5365655bb58dbf4845619c5d3.zip
Merge fixup for secureboot
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
-rwxr-xr-xkernel.spec2
-rw-r--r--secureboot_merge_fix.patch18
2 files changed, 20 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index a4c366a2d..5849c4b4f 100755
--- a/kernel.spec
+++ b/kernel.spec
@@ -741,6 +741,7 @@ Source4000: README.rst
%if !%{nopatches}
Patch1: patch-%{rpmversion}-redhat.patch
+Patch2: secureboot_merge_fix.patch
%endif
# empty final patch to facilitate testing of kernel patches
@@ -1244,6 +1245,7 @@ cp -a %{SOURCE1} .
%if !%{nopatches}
ApplyOptionalPatch patch-%{rpmversion}-redhat.patch
+ApplyOptionalPatch secureboot_merge_fix.patch
%endif
ApplyOptionalPatch linux-kernel-test.patch
diff --git a/secureboot_merge_fix.patch b/secureboot_merge_fix.patch
new file mode 100644
index 000000000..d67a4b7ca
--- /dev/null
+++ b/secureboot_merge_fix.patch
@@ -0,0 +1,18 @@
+diff --git a/include/linux/efi.h b/include/linux/efi.h
+index 03cb4259200d..4c55e3aa7e95 100644
+--- a/include/linux/efi.h
++++ b/include/linux/efi.h
+@@ -1096,13 +1096,6 @@ static inline bool efi_runtime_disabled(void) { return true; }
+ extern void efi_call_virt_check_flags(unsigned long flags, const char *call);
+ extern unsigned long efi_call_virt_save_flags(void);
+
+-enum efi_secureboot_mode {
+- efi_secureboot_mode_unset,
+- efi_secureboot_mode_unknown,
+- efi_secureboot_mode_disabled,
+- efi_secureboot_mode_enabled,
+-};
+-
+ static inline
+ enum efi_secureboot_mode efi_get_secureboot_mode(efi_get_variable_t *get_var)
+ {