summaryrefslogtreecommitdiffstats
path: root/devel-sysrq-secure-boot-20130717.patch
diff options
context:
space:
mode:
authorKyle McMartin <kyle@redhat.com>2013-07-22 14:13:00 -0400
committerKyle McMartin <kyle@redhat.com>2013-07-22 14:13:00 -0400
commit6421a9264d4de47663b60f18b1f51fbbdd998e97 (patch)
tree7bc4de519048e4f75259aa2aae5f3945998bfabf /devel-sysrq-secure-boot-20130717.patch
parent7af7ee13a4cb0c4b6039736db990abdfe22a4090 (diff)
downloadkernel-6421a9264d4de47663b60f18b1f51fbbdd998e97.tar.gz
kernel-6421a9264d4de47663b60f18b1f51fbbdd998e97.tar.xz
kernel-6421a9264d4de47663b60f18b1f51fbbdd998e97.zip
remove frivolous changes that leaked into devel-sysrq-secure-boot-20130717.patch
Diffstat (limited to 'devel-sysrq-secure-boot-20130717.patch')
-rw-r--r--devel-sysrq-secure-boot-20130717.patch25
1 files changed, 7 insertions, 18 deletions
diff --git a/devel-sysrq-secure-boot-20130717.patch b/devel-sysrq-secure-boot-20130717.patch
index 285297256..a40f26ce5 100644
--- a/devel-sysrq-secure-boot-20130717.patch
+++ b/devel-sysrq-secure-boot-20130717.patch
@@ -1,18 +1,5 @@
-diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
-index 6ad8292..e7b9374 100644
---- a/Documentation/kernel-parameters.txt
-+++ b/Documentation/kernel-parameters.txt
-@@ -2784,7 +2784,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
- Note: increases power consumption, thus should only be
- enabled if running jitter sensitive (HPC/RT) workloads.
-
-- secureboot_enable=
-+ secureboot_enable
- [KNL] Enables an emulated UEFI Secure Boot mode. This
- locks down various aspects of the kernel guarded by the
- CAP_COMPROMISE_KERNEL capability. This includes things
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
-index 167ca34..ba3c8f2 100644
+index 167ca34..2a06699 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -70,6 +70,11 @@
@@ -27,7 +14,7 @@ index 167ca34..ba3c8f2 100644
#include <video/edid.h>
#include <asm/mtrr.h>
-@@ -1252,3 +1257,59 @@ void __init i386_reserve_resources(void)
+@@ -1252,3 +1257,61 @@ void __init i386_reserve_resources(void)
}
#endif /* CONFIG_X86_32 */
@@ -51,12 +38,14 @@ index 167ca34..ba3c8f2 100644
+}
+
+/* Dummy Secure Boot enable option to fake out UEFI SB=1 */
-+static int __init secureboot_enable_opt(char *__unused)
++static int __init secureboot_enable_opt(char *str)
+{
-+ secureboot_enable();
++ int sb_enable = !!simple_strtol(str, NULL, 0);
++ if (sb_enable)
++ secureboot_enable();
+ return 1;
+}
-+__setup("secureboot_enable", secureboot_enable_opt);
++__setup("secureboot_enable=", secureboot_enable_opt);
+
+#ifdef CONFIG_MAGIC_SYSRQ
+extern int sb_enabled;