|
|
3ab5c5 |
%global pesign_vre 0.106-1
|
|
|
3ab5c5 |
%global openssl_vre 1.0.2j
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
|
|
|
3ab5c5 |
%global shimrootdir %{_datadir}/shim/
|
|
|
3ab5c5 |
%global shimversiondir %{shimrootdir}/%{version}-%{release}
|
|
|
3ab5c5 |
%global efiarch x64
|
|
|
3ab5c5 |
%global shimdir %{shimversiondir}/%{efiarch}
|
|
|
3ab5c5 |
%global efialtarch ia32
|
|
|
3ab5c5 |
%global shimaltdir %{shimversiondir}/%{efialtarch}
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%global debug_package %{nil}
|
|
|
3ab5c5 |
%global __debug_package 1
|
|
|
3ab5c5 |
%global _binaries_in_noarch_packages_terminate_build 0
|
|
|
3ab5c5 |
%global __debug_install_post %{SOURCE100} %{efiarch} %{efialtarch}
|
|
|
3ab5c5 |
%undefine _debuginfo_subpackages
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
# currently here's what's in our dbx: nothing
|
|
|
3ab5c5 |
%global dbxfile %{nil}
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
Name: shim-unsigned-%{efiarch}
|
|
|
e90015 |
Version: 15.6
|
|
|
3ab5c5 |
Release: 1.el9
|
|
|
3ab5c5 |
Summary: First-stage UEFI bootloader
|
|
|
3ab5c5 |
ExclusiveArch: x86_64
|
|
|
3ab5c5 |
License: BSD
|
|
|
3ab5c5 |
URL: https://github.com/rhboot/shim
|
|
|
3ab5c5 |
Source0: https://github.com/rhboot/shim/releases/download/%{version}/shim-%{version}.tar.bz2
|
|
|
3ab5c5 |
Source1: redhatsecurebootca5.cer
|
|
|
3ab5c5 |
%if 0%{?dbxfile}
|
|
|
3ab5c5 |
Source2: %{dbxfile}
|
|
|
3ab5c5 |
%endif
|
|
|
3ab5c5 |
Source3: sbat.redhat.csv
|
|
|
e90015 |
Source4: shim.patches
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
Source100: shim-find-debuginfo.sh
|
|
|
3ab5c5 |
|
|
|
e90015 |
%include %{SOURCE4}
|
|
|
e90015 |
|
|
|
3ab5c5 |
BuildRequires: gcc make
|
|
|
3ab5c5 |
BuildRequires: elfutils-libelf-devel
|
|
|
3ab5c5 |
BuildRequires: git openssl-devel openssl
|
|
|
3ab5c5 |
BuildRequires: pesign >= %{pesign_vre}
|
|
|
3ab5c5 |
BuildRequires: dos2unix findutils
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
|
|
|
3ab5c5 |
# compatible with SysV (there's no red zone under UEFI) and there isn't a
|
|
|
3ab5c5 |
# POSIX-style C library.
|
|
|
3ab5c5 |
# BuildRequires: OpenSSL
|
|
|
3ab5c5 |
Provides: bundled(openssl) = %{openssl_vre}
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%global desc \
|
|
|
3ab5c5 |
Initial UEFI bootloader that handles chaining to a trusted full \
|
|
|
3ab5c5 |
bootloader under secure boot environments.
|
|
|
3ab5c5 |
%global debug_desc \
|
|
|
3ab5c5 |
This package provides debug information for package %{expand:%%{name}} \
|
|
|
3ab5c5 |
Debug information is useful when developing applications that \
|
|
|
3ab5c5 |
use this package or when debugging this package.
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%description
|
|
|
3ab5c5 |
%desc
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%package -n shim-unsigned-%{efialtarch}
|
|
|
3ab5c5 |
Summary: First-stage UEFI bootloader (unsigned data)
|
|
|
3ab5c5 |
Provides: bundled(openssl) = %{openssl_vre}
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%description -n shim-unsigned-%{efialtarch}
|
|
|
3ab5c5 |
%desc
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%package debuginfo
|
|
|
3ab5c5 |
Summary: Debug information for shim-unsigned-%{efiarch}
|
|
|
3ab5c5 |
Group: Development/Debug
|
|
|
3ab5c5 |
AutoReqProv: 0
|
|
|
3ab5c5 |
BuildArch: noarch
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%description debuginfo
|
|
|
3ab5c5 |
%debug_desc
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%package -n shim-unsigned-%{efialtarch}-debuginfo
|
|
|
3ab5c5 |
Summary: Debug information for shim-unsigned-%{efialtarch}
|
|
|
3ab5c5 |
Group: Development/Debug
|
|
|
3ab5c5 |
AutoReqProv: 0
|
|
|
3ab5c5 |
BuildArch: noarch
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%description -n shim-unsigned-%{efialtarch}-debuginfo
|
|
|
3ab5c5 |
%debug_desc
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%package debugsource
|
|
|
3ab5c5 |
Summary: Debug Source for shim-unsigned
|
|
|
3ab5c5 |
Group: Development/Debug
|
|
|
3ab5c5 |
AutoReqProv: 0
|
|
|
3ab5c5 |
BuildArch: noarch
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%description debugsource
|
|
|
3ab5c5 |
%debug_desc
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%prep
|
|
|
e90015 |
%autosetup -S git_am -n shim-%{version}
|
|
|
3ab5c5 |
git config --unset user.email
|
|
|
3ab5c5 |
git config --unset user.name
|
|
|
3ab5c5 |
mkdir build-%{efiarch}
|
|
|
3ab5c5 |
mkdir build-%{efialtarch}
|
|
|
3ab5c5 |
cp %{SOURCE3} data/
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%build
|
|
|
3ab5c5 |
COMMITID=$(cat commit)
|
|
|
3ab5c5 |
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMITID=${COMMITID} "
|
|
|
3ab5c5 |
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
|
|
3ab5c5 |
MAKEFLAGS+="ENABLE_SHIM_HASH=true "
|
|
|
3ab5c5 |
MAKEFLAGS+="%{_smp_mflags}"
|
|
|
3ab5c5 |
if [ -f "%{SOURCE1}" ]; then
|
|
|
3ab5c5 |
MAKEFLAGS="$MAKEFLAGS VENDOR_CERT_FILE=%{SOURCE1}"
|
|
|
3ab5c5 |
fi
|
|
|
3ab5c5 |
%if 0%{?dbxfile}
|
|
|
3ab5c5 |
if [ -f "%{SOURCE2}" ]; then
|
|
|
3ab5c5 |
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
|
|
3ab5c5 |
fi
|
|
|
3ab5c5 |
%endif
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
cd build-%{efiarch}
|
|
|
3ab5c5 |
make ${MAKEFLAGS} \
|
|
|
3ab5c5 |
DEFAULT_LOADER='\\\\grub%{efiarch}.efi' \
|
|
|
3ab5c5 |
all
|
|
|
3ab5c5 |
cd ..
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%install
|
|
|
3ab5c5 |
COMMITID=$(cat commit)
|
|
|
3ab5c5 |
MAKEFLAGS="TOPDIR=.. -f ../Makefile COMMITID=${COMMITID} "
|
|
|
3ab5c5 |
MAKEFLAGS+="EFIDIR=%{efidir} PKGNAME=shim RELEASE=%{release} "
|
|
|
3ab5c5 |
MAKEFLAGS+="ENABLE_SHIM_HASH=true "
|
|
|
3ab5c5 |
if [ -f "%{SOURCE1}" ]; then
|
|
|
3ab5c5 |
MAKEFLAGS="$MAKEFLAGS VENDOR_CERT_FILE=%{SOURCE1}"
|
|
|
3ab5c5 |
fi
|
|
|
3ab5c5 |
%if 0%{?dbxfile}
|
|
|
3ab5c5 |
if [ -f "%{SOURCE2}" ]; then
|
|
|
3ab5c5 |
MAKEFLAGS="$MAKEFLAGS VENDOR_DBX_FILE=%{SOURCE2}"
|
|
|
3ab5c5 |
fi
|
|
|
3ab5c5 |
%endif
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
cd build-%{efiarch}
|
|
|
3ab5c5 |
make ${MAKEFLAGS} \
|
|
|
3ab5c5 |
DEFAULT_LOADER='\\\\grub%{efiarch}.efi' \
|
|
|
3ab5c5 |
DESTDIR=${RPM_BUILD_ROOT} \
|
|
|
3ab5c5 |
install-as-data install-debuginfo install-debugsource
|
|
|
3ab5c5 |
cd ..
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%files
|
|
|
3ab5c5 |
%license COPYRIGHT
|
|
|
3ab5c5 |
%dir %{shimrootdir}
|
|
|
3ab5c5 |
%dir %{shimversiondir}
|
|
|
3ab5c5 |
%dir %{shimdir}
|
|
|
3ab5c5 |
%{shimdir}/*.efi
|
|
|
3ab5c5 |
%{shimdir}/*.hash
|
|
|
3ab5c5 |
%{shimdir}/*.CSV
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%files debuginfo -f build-%{efiarch}/debugfiles.list
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%files debugsource -f build-%{efiarch}/debugsource.list
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
%changelog
|
|
|
e90015 |
* Wed Jun 01 2022 Peter Jones <pjones@redhat.com> - 15.6-1.el9
|
|
|
e90015 |
- Update to shim-15.6
|
|
|
e90015 |
Resolves: CVE-2022-28737
|
|
|
e90015 |
|
|
|
3ab5c5 |
* Wed Mar 09 2022 Peter Jones <pjones@redhat.com> - 15.5-1
|
|
|
3ab5c5 |
- Update to shim-15.5
|
|
|
3ab5c5 |
Related: rhbz#1932057
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Thu Apr 01 2021 Peter Jones <pjones@redhat.com> - 15.4-4
|
|
|
3ab5c5 |
- Fix the sbat data to actually match /this/ product.
|
|
|
3ab5c5 |
Resolves: CVE-2020-14372
|
|
|
3ab5c5 |
Resolves: CVE-2020-25632
|
|
|
3ab5c5 |
Resolves: CVE-2020-25647
|
|
|
3ab5c5 |
Resolves: CVE-2020-27749
|
|
|
3ab5c5 |
Resolves: CVE-2020-27779
|
|
|
3ab5c5 |
Resolves: CVE-2021-20225
|
|
|
3ab5c5 |
Resolves: CVE-2021-20233
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Wed Mar 31 2021 Peter Jones <pjones@redhat.com> - 15.4-3
|
|
|
3ab5c5 |
- Build with the correct certificate trust list for this OS.
|
|
|
3ab5c5 |
Resolves: CVE-2020-14372
|
|
|
3ab5c5 |
Resolves: CVE-2020-25632
|
|
|
3ab5c5 |
Resolves: CVE-2020-25647
|
|
|
3ab5c5 |
Resolves: CVE-2020-27749
|
|
|
3ab5c5 |
Resolves: CVE-2020-27779
|
|
|
3ab5c5 |
Resolves: CVE-2021-20225
|
|
|
3ab5c5 |
Resolves: CVE-2021-20233
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Wed Mar 31 2021 Peter Jones <pjones@redhat.com> - 15.4-2
|
|
|
3ab5c5 |
- Fix the ia32 build.
|
|
|
3ab5c5 |
Resolves: CVE-2020-14372
|
|
|
3ab5c5 |
Resolves: CVE-2020-25632
|
|
|
3ab5c5 |
Resolves: CVE-2020-25647
|
|
|
3ab5c5 |
Resolves: CVE-2020-27749
|
|
|
3ab5c5 |
Resolves: CVE-2020-27779
|
|
|
3ab5c5 |
Resolves: CVE-2021-20225
|
|
|
3ab5c5 |
Resolves: CVE-2021-20233
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Tue Mar 30 2021 Peter Jones <pjones@redhat.com> - 15.4-1
|
|
|
3ab5c5 |
- Update to shim 15.4
|
|
|
3ab5c5 |
- Support for revocations via the ".sbat" section and SBAT EFI variable
|
|
|
3ab5c5 |
- A new unit test framework and a bunch of unit tests
|
|
|
3ab5c5 |
- No external gnu-efi dependency
|
|
|
3ab5c5 |
- Better CI
|
|
|
3ab5c5 |
Resolves: CVE-2020-14372
|
|
|
3ab5c5 |
Resolves: CVE-2020-25632
|
|
|
3ab5c5 |
Resolves: CVE-2020-25647
|
|
|
3ab5c5 |
Resolves: CVE-2020-27749
|
|
|
3ab5c5 |
Resolves: CVE-2020-27779
|
|
|
3ab5c5 |
Resolves: CVE-2021-20225
|
|
|
3ab5c5 |
Resolves: CVE-2021-20233
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Wed Mar 24 2021 Peter Jones <pjones@redhat.com> - 15.3-0~1
|
|
|
3ab5c5 |
- Update to shim 15.3
|
|
|
3ab5c5 |
- Support for revocations via the ".sbat" section and SBAT EFI variable
|
|
|
3ab5c5 |
- A new unit test framework and a bunch of unit tests
|
|
|
3ab5c5 |
- No external gnu-efi dependency
|
|
|
3ab5c5 |
- Better CI
|
|
|
3ab5c5 |
Resolves: CVE-2020-14372
|
|
|
3ab5c5 |
Resolves: CVE-2020-25632
|
|
|
3ab5c5 |
Resolves: CVE-2020-25647
|
|
|
3ab5c5 |
Resolves: CVE-2020-27749
|
|
|
3ab5c5 |
Resolves: CVE-2020-27779
|
|
|
3ab5c5 |
Resolves: CVE-2021-20225
|
|
|
3ab5c5 |
Resolves: CVE-2021-20233
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Wed Jun 05 2019 Javier Martinez Canillas <javierm@redhat.com> - 15-3
|
|
|
3ab5c5 |
- Make EFI variable copying fatal only on secureboot enabled systems
|
|
|
3ab5c5 |
Resolves: rhbz#1715878
|
|
|
3ab5c5 |
- Fix booting shim from an EFI shell using a relative path
|
|
|
3ab5c5 |
Resolves: rhbz#1717064
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Tue Feb 12 2019 Peter Jones <pjones@redhat.com> - 15-2
|
|
|
3ab5c5 |
- Fix MoK mirroring issue which breaks kdump without intervention
|
|
|
3ab5c5 |
Related: rhbz#1668966
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Thu Apr 05 2018 Peter Jones <pjones@redhat.com> - 15-1
|
|
|
3ab5c5 |
- Update to shim 15
|
|
|
3ab5c5 |
- better checking for bad linker output
|
|
|
3ab5c5 |
- flicker-free console if there's no error output
|
|
|
3ab5c5 |
- improved http boot support
|
|
|
3ab5c5 |
- better protocol re-installation
|
|
|
3ab5c5 |
- dhcp proxy support
|
|
|
3ab5c5 |
- tpm measurement even when verification is disabled
|
|
|
3ab5c5 |
- REQUIRE_TPM build flag
|
|
|
3ab5c5 |
- more reproducable builds
|
|
|
3ab5c5 |
- measurement of everything verified through shim_verify()
|
|
|
3ab5c5 |
- coverity and scan-build checker make targets
|
|
|
3ab5c5 |
- misc cleanups
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 13-0.2
|
|
|
3ab5c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3ab5c5 |
|
|
|
3ab5c5 |
* Fri Aug 18 2017 Peter Jones <pjones@redhat.com> - 13-0.1
|
|
|
3ab5c5 |
- Make a new shim-unsigned-x64 package like the shim-unsigned-aarch64 one.
|
|
|
3ab5c5 |
- This will (eventually) supersede what's in the "shim" package so we can
|
|
|
3ab5c5 |
make "shim" hold the signed one, which will confuse fewer people.
|