Merge branch 'c8' into a8
This commit is contained in:
commit
b1e6e846c2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/shim-15.6.tar.bz2
|
SOURCES/shim-15.8.tar.bz2
|
||||||
|
@ -1 +1 @@
|
|||||||
3df0ab5cefc74fdf865cb36aea0e923cb4b6b3ed SOURCES/shim-15.6.tar.bz2
|
cdec924ca437a4509dcb178396996ddf92c11183 SOURCES/shim-15.8.tar.bz2
|
||||||
|
BIN
SOURCES/almalinux-sb-cert-1.der
Normal file
BIN
SOURCES/almalinux-sb-cert-1.der
Normal file
Binary file not shown.
BIN
SOURCES/almalinux-sb-cert-2.der
Normal file
BIN
SOURCES/almalinux-sb-cert-2.der
Normal file
Binary file not shown.
BIN
SOURCES/almalinux-sb-cert-3.der
Normal file
BIN
SOURCES/almalinux-sb-cert-3.der
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
shim.almalinux,2,AlmaLinux,shim,15.6,security@almalinux.org
|
shim.almalinux,3,AlmaLinux,shim,15.8,security@almalinux.org
|
||||||
|
|
Binary file not shown.
@ -17,14 +17,13 @@
|
|||||||
%global shimaltdir %{shimversiondir}/%{efialtarch}
|
%global shimaltdir %{shimversiondir}/%{efialtarch}
|
||||||
|
|
||||||
Name: shim-unsigned-%{efiarch}
|
Name: shim-unsigned-%{efiarch}
|
||||||
Version: 15.6
|
Version: 15.8
|
||||||
Release: 1.el8.alma.1
|
Release: 2.el8.alma.1
|
||||||
Summary: First-stage UEFI bootloader
|
Summary: First-stage UEFI bootloader
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/rhboot/shim
|
URL: https://github.com/rhboot/shim
|
||||||
Source0: https://github.com/rhboot/shim/releases/download/%{version}/shim-%{version}.tar.bz2
|
Source0: https://github.com/rhboot/shim/releases/download/%{version}/shim-%{version}.tar.bz2
|
||||||
Source1: vendor_db.esl
|
|
||||||
# currently here's what's in our dbx:
|
# currently here's what's in our dbx:
|
||||||
# nothing.
|
# nothing.
|
||||||
Source2: dbx.esl
|
Source2: dbx.esl
|
||||||
@ -33,6 +32,10 @@ Source4: shim.patches
|
|||||||
|
|
||||||
Source100: shim-find-debuginfo.sh
|
Source100: shim-find-debuginfo.sh
|
||||||
|
|
||||||
|
Source101: almalinux-sb-cert-1.der
|
||||||
|
Source102: almalinux-sb-cert-2.der
|
||||||
|
Source103: almalinux-sb-cert-3.der
|
||||||
|
|
||||||
%include %{SOURCE4}
|
%include %{SOURCE4}
|
||||||
|
|
||||||
BuildRequires: gcc make
|
BuildRequires: gcc make
|
||||||
@ -40,6 +43,7 @@ BuildRequires: elfutils-libelf-devel
|
|||||||
BuildRequires: git openssl-devel openssl
|
BuildRequires: git openssl-devel openssl
|
||||||
BuildRequires: pesign >= %{pesign_vre}
|
BuildRequires: pesign >= %{pesign_vre}
|
||||||
BuildRequires: dos2unix findutils
|
BuildRequires: dos2unix findutils
|
||||||
|
BuildRequires: efitools
|
||||||
|
|
||||||
# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
|
# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
|
||||||
# compatible with SysV (there's no red zone under UEFI) and there isn't a
|
# compatible with SysV (there's no red zone under UEFI) and there isn't a
|
||||||
@ -103,13 +107,23 @@ mkdir build-%{efialtarch}
|
|||||||
cp %{SOURCE3} data/
|
cp %{SOURCE3} data/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
COMMITID=$(cat commit)
|
# Prepare vendor_db.esl file
|
||||||
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMITID=${COMMITID} "
|
openssl x509 -inform DER -in %{SOURCE101} -out 01.pem
|
||||||
|
openssl x509 -inform DER -in %{SOURCE102} -out 02.pem
|
||||||
|
openssl x509 -inform DER -in %{SOURCE103} -out 03.pem
|
||||||
|
cert-to-efi-sig-list -g 9DD8A2AC-0977-4AEF-99A0-E794FD2A31FE 01.pem 01.esl
|
||||||
|
cert-to-efi-sig-list -g 33D81FE3-5EC0-44F8-AB02-C9DA554F63D8 02.pem 02.esl
|
||||||
|
cert-to-efi-sig-list -g 50413300-1AC7-49DA-B755-BB0D93E634B6 03.pem 03.esl
|
||||||
|
cat 01.esl 02.esl 03.esl > vendor_db.esl
|
||||||
|
|
||||||
|
COMMIT_ID=5914984a1ffeab841f482c791426d7ca9935a5e6
|
||||||
|
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMIT_ID=${COMMIT_ID} "
|
||||||
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
||||||
MAKEFLAGS+="ENABLE_SHIM_HASH=true "
|
MAKEFLAGS+="ENABLE_SHIM_HASH=true "
|
||||||
|
MAKEFLAGS+="SBAT_AUTOMATIC_DATE=2023012900 "
|
||||||
MAKEFLAGS+="%{_smp_mflags}"
|
MAKEFLAGS+="%{_smp_mflags}"
|
||||||
if [ -s "%{SOURCE1}" ]; then
|
if [ -s vendor_db.esl ]; then
|
||||||
MAKEFLAGS="$MAKEFLAGS VENDOR_DB_FILE=%{SOURCE1}"
|
MAKEFLAGS="$MAKEFLAGS VENDOR_DB_FILE=../vendor_db.esl"
|
||||||
fi
|
fi
|
||||||
if [ -s "%{SOURCE2}" ]; then
|
if [ -s "%{SOURCE2}" ]; then
|
||||||
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
||||||
@ -128,12 +142,13 @@ setarch linux32 -B make ${MAKEFLAGS} ARCH=%{efialtarch} \
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
COMMITID=$(cat commit)
|
COMMIT_ID=5914984a1ffeab841f482c791426d7ca9935a5e6
|
||||||
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMITID=${COMMITID} "
|
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMIT_ID=${COMMIT_ID} "
|
||||||
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
||||||
MAKEFLAGS+="ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true "
|
MAKEFLAGS+="ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true "
|
||||||
if [ -s "%{SOURCE1}" ]; then
|
MAKEFLAGS+="SBAT_AUTOMATIC_DATE=2023012900 "
|
||||||
MAKEFLAGS="$MAKEFLAGS VENDOR_DB_FILE=%{SOURCE1}"
|
if [ -s vendor_db.esl ]; then
|
||||||
|
MAKEFLAGS="$MAKEFLAGS VENDOR_DB_FILE=../vendor_db.esl"
|
||||||
fi
|
fi
|
||||||
if [ -s "%{SOURCE2}" ]; then
|
if [ -s "%{SOURCE2}" ]; then
|
||||||
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
||||||
@ -178,8 +193,16 @@ cd ..
|
|||||||
%files debugsource -f build-%{efiarch}/debugsource.list
|
%files debugsource -f build-%{efiarch}/debugsource.list
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jun 20 2022 Andrew Lukoshko <alukoshko@almalinux.org> - 15.6-1.el8.alma.1
|
* Tue Mar 26 2024 Eduard Abdullin <eabdullin@almalinux.org> - 15.8-2.el8.alma.1
|
||||||
- Use AlmaLinux cert and SBAT entry
|
- Update to shim-15.8
|
||||||
|
|
||||||
|
* Wed Feb 07 2024 Peter Jones <pjones@redhat.com> - 15.8-2.el8
|
||||||
|
- Rebuild to fix the commit ident and MAKEFLAGS
|
||||||
|
Resolves: RHEL-11259
|
||||||
|
|
||||||
|
* Tue Dec 05 2023 Peter Jones <pjones@redhat.com> - 15.8-1.el8
|
||||||
|
- Update to shim-15.8 for CVE-2023-40547
|
||||||
|
Resolves: RHEL-11259
|
||||||
|
|
||||||
* Wed Jun 01 2022 Peter Jones <pjones@redhat.com> - 15.6-1.el8
|
* Wed Jun 01 2022 Peter Jones <pjones@redhat.com> - 15.6-1.el8
|
||||||
- Update to shim-15.6
|
- Update to shim-15.6
|
||||||
|
Loading…
Reference in New Issue
Block a user