Fix secure_mode() always returning true

This commit is contained in:
Matthew Garrett 2012-11-28 12:18:07 -05:00
parent ced6e726d1
commit fceb7acdba
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From a949ce8f56363b48fa32fd4b0c6e656e95b08e06 Mon Sep 17 00:00:00 2001
From: Fedora Ninjas <shim-owner@fedoraproject.org>
Date: Wed, 28 Nov 2012 12:14:50 -0500
Subject: [PATCH] Remove extraneous debug code
---
shim.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/shim.c b/shim.c
index 88c8209..d0acd0a 100644
--- a/shim.c
+++ b/shim.c
@@ -416,8 +416,6 @@ static BOOLEAN secure_mode (void)
UINT8 sb, setupmode;
UINT32 attributes;
- return TRUE;
-
if (insecure_mode)
return FALSE;
--
1.8.0

View File

@ -1,6 +1,6 @@
Name: shim
Version: 0.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: First-stage UEFI bootloader
License: BSD
@ -23,6 +23,7 @@ Source2: http://www.codon.org.uk/~mjg59/mokutil/mokutil-%{mokutilver}.tar.bz2
Source3: dbx.esl
Patch0: 0001-Fix-grub-path.patch
Patch1: 0002-Remove-extraneous-debug-code.patch
BuildRequires: gnu-efi git openssl-devel openssl
BuildRequires: pesign >= 0.99-9
@ -107,6 +108,9 @@ make PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot} install
/usr/share/man/man1/mokutil.1.gz
%changelog
* Wed Nov 28 2012 Matthew Garrett <mjg59@srcf.ucam.org> - 0.2-2
- Fix secure_mode() always returning true
* Mon Nov 26 2012 Matthew Garrett <mjg59@srcf.ucam.org> - 0.2-1
- Update shim
- Include mokutil