diff --git a/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch b/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch index 0b4907d..6882c12 100644 --- a/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch +++ b/0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch @@ -1,3 +1,4 @@ +From da502f7cc283055a65ab3caeaa62eb5c6a6fddb5 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Mon, 6 Jul 2015 20:22:02 +0200 Subject: [PATCH] OvmfPkg: EnrollDefaultKeys: application for enrolling default @@ -43,21 +44,21 @@ DB: Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- - OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c | 960 ++++++++++++++++++++++++ + OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c | 963 ++++++++++++++++++++++++ OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf | 51 ++ OvmfPkg/OvmfPkgIa32.dsc | 4 + OvmfPkg/OvmfPkgIa32X64.dsc | 4 + OvmfPkg/OvmfPkgX64.dsc | 4 + - 5 files changed, 1023 insertions(+) + 5 files changed, 1026 insertions(+) create mode 100644 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c create mode 100644 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf diff --git a/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c b/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c new file mode 100644 -index 0000000..081212b +index 0000000..447288f --- /dev/null +++ b/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.c -@@ -0,0 +1,960 @@ +@@ -0,0 +1,963 @@ +/** @file + Enroll default PK, KEK, DB. + @@ -723,6 +724,8 @@ index 0000000..081212b + UINT8 *Data; + UINT8 *Position; + ++ Status = EFI_SUCCESS; ++ + // + // compute total size first, for UINT32 range check, and allocation + // @@ -800,10 +803,11 @@ index 0000000..081212b + + RepeatingHeader = (REPEATING_HEADER *)Position; + CopyGuid (&RepeatingHeader->SignatureType, &gEfiCertX509Guid); -+ RepeatingHeader->SignatureListSize = sizeof *RepeatingHeader + CertSize; ++ RepeatingHeader->SignatureListSize = ++ (UINT32)(sizeof *RepeatingHeader + CertSize); + RepeatingHeader->SignatureHeaderSize = 0; + RepeatingHeader->SignatureSize = -+ sizeof RepeatingHeader->SignatureOwner + CertSize; ++ (UINT32)(sizeof RepeatingHeader->SignatureOwner + CertSize); + CopyGuid (&RepeatingHeader->SignatureOwner, OwnerGuid); + Position += sizeof *RepeatingHeader; + @@ -1076,10 +1080,10 @@ index 0000000..ac919bb + UefiLib + UefiRuntimeServicesTableLib diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc -index fa9661c..e2e6ba3 100644 +index 8af3267..6fb5c9c 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc -@@ -764,6 +764,10 @@ +@@ -749,6 +749,10 @@ !if $(SECURE_BOOT_ENABLE) == TRUE SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf @@ -1091,10 +1095,10 @@ index fa9661c..e2e6ba3 100644 OvmfPkg/PlatformDxe/Platform.inf diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc -index 667584a..a0ae1aa 100644 +index 4bb38d0..e5abaff 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc -@@ -773,6 +773,10 @@ +@@ -758,6 +758,10 @@ !if $(SECURE_BOOT_ENABLE) == TRUE SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf @@ -1106,10 +1110,10 @@ index 667584a..a0ae1aa 100644 OvmfPkg/PlatformDxe/Platform.inf diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc -index 5ae8469..87cee52 100644 +index be3aa1f..4c36a7d 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc -@@ -771,6 +771,10 @@ +@@ -756,6 +756,10 @@ !if $(SECURE_BOOT_ENABLE) == TRUE SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf @@ -1120,3 +1124,6 @@ index 5ae8469..87cee52 100644 !endif OvmfPkg/PlatformDxe/Platform.inf +-- +1.8.3.1 + diff --git a/edk2.spec b/edk2.spec index 2ac7483..f0c334f 100644 --- a/edk2.spec +++ b/edk2.spec @@ -4,7 +4,7 @@ Name: edk2 Version: %{edk2_date}git%{edk2_githash} -Release: 1%{dist} +Release: 2%{dist} Summary: EFI Development Kit II Group: Applications/Emulators @@ -305,6 +305,9 @@ cp -a arm %{buildroot}/usr/share/%{name} %changelog +* Thu Feb 16 2017 Cole Robinson - 20170209git296153c5-2 +- Update EnrollDefaultKeys patch (bz #1398743) + * Mon Feb 13 2017 Paolo Bonzini - 20170209git296153c5-1 - Rebase to git master - New patch 0010 fixes failure to build from source.