Compare commits
No commits in common. "c8" and "c9" have entirely different histories.
242
SPECS/tboot.spec
242
SPECS/tboot.spec
@ -4,71 +4,71 @@ Version: 1.10.5
|
|||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
Group: System Environment/Base
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://sourceforge.net/projects/tboot/
|
URL: http://sourceforge.net/projects/tboot/
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: openssl-devel
|
|
||||||
BuildRequires: perl
|
|
||||||
ExclusiveArch: %{ix86} x86_64
|
|
||||||
Requires: grub2-efi-x64-modules
|
|
||||||
|
|
||||||
Patch01: 0001-fix-typo-in-lcp2_crtpollist-manpage.patch
|
Patch01: 0001-fix-typo-in-lcp2_crtpollist-manpage.patch
|
||||||
Patch02: 0002-check-for-client-server-match.patch
|
Patch02: 0002-check-for-client-server-match.patch
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
ExclusiveArch: %{ix86} x86_64
|
||||||
|
Requires: grub2-efi-x64-modules
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Trusted Boot (tboot) is an open source, pre-kernel/VMM module that uses
|
Trusted Boot (tboot) is an open source, pre-kernel/VMM module that uses
|
||||||
Intel Trusted Execution Technology (Intel TXT) to perform a measured
|
Intel Trusted Execution Technology (Intel TXT) to perform a measured
|
||||||
and verified launch of an OS kernel/VMM.
|
and verified launch of an OS kernel/VMM.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -S git
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
|
||||||
# do not override OPTFLAGS
|
|
||||||
sed -i -e 's/-march=i686//' Config.mk
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
|
CFLAGS="%{optflags}"; export CFLAGS
|
||||||
LDFLAGS="$RPM_LD_FLAGS"; export LDFLAGS
|
LDFLAGS="%{build_ldflags}"; export LDFLAGS
|
||||||
make debug=y %{?_smp_mflags}
|
make debug=y %{?_smp_mflags}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# create the tboot entry and copy the modules to the grubenvdir
|
# Rmove the grub efi modules if they had been placed in the wrong directory by
|
||||||
grublib='/usr/lib/grub/x86_64-efi/'
|
# a previous install.
|
||||||
|
[ -d /boot/efi/EFI/redhat/x86_64-efi ] && rm -rf /boot/efi/EFI/redhat/x86_64-efi
|
||||||
|
# create the tboot grub entry
|
||||||
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
|
|
||||||
|
# For EFI based machines ...
|
||||||
if [ -d /sys/firmware/efi ]; then
|
if [ -d /sys/firmware/efi ]; then
|
||||||
echo "EFI detected .."
|
echo "EFI detected .."
|
||||||
grubenvdir='/boot/efi/EFI/redhat'
|
[ -d /boot/grub2/x86_64-efi ] || mkdir -pv /boot/grub2/x86_64-efi
|
||||||
else
|
cp -vf /usr/lib/grub/x86_64-efi/relocator.mod /boot/grub2/x86_64-efi/
|
||||||
echo "Legacy BIOS detected .."
|
cp -vf /usr/lib/grub/x86_64-efi/multiboot2.mod /boot/grub2/x86_64-efi/
|
||||||
grubenvdir='/boot/grub2'
|
|
||||||
# If previous install put the modules in the wrong dir
|
|
||||||
[ -d /boot/efi/EFI/redhat/x86_64-efi ] && rm -rf /boot/efi/EFI/redhat/x86_64-efi
|
|
||||||
fi
|
|
||||||
|
|
||||||
grub2-mkconfig -o $grubenvdir/grub.cfg
|
# If there were a previous install of tboot that overwrote the
|
||||||
[ -d $grubenvdir/x86_64-efi ] || mkdir -pv $grubenvdir/x86_64-efi
|
# originally installed /boot/efi/EFI/redhat/grub.cfg stub, then
|
||||||
cp -vf $grublib/relocator.mod $grubenvdir/x86_64-efi/
|
# recreate it.
|
||||||
cp -vf $grublib/multiboot2.mod $grubenvdir/x86_64-efi/
|
if grep -q -m1 tboot /boot/efi/EFI/redhat/grub.cfg; then
|
||||||
|
cat << EOF > /boot/efi/EFI/redhat/grub.cfg
|
||||||
|
search --no-floppy --fs-uuid --set=dev \
|
||||||
|
$(lsblk -no UUID $(df -P /boot/grub2 | awk 'END{print $1}'))
|
||||||
|
set prefix=(\$dev)/grub2
|
||||||
|
export \$prefix
|
||||||
|
configfile \$prefix/grub.cfg
|
||||||
|
EOF
|
||||||
|
chown root:root /boot/efi/EFI/redhat/grub.cfg
|
||||||
|
chmod u=rwx,go= /boot/efi/EFI/redhat/grub.cfg
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
# Cleanup all tboot files
|
|
||||||
|
|
||||||
# Remove residual grub efi modules.
|
# Remove residual grub efi modules.
|
||||||
if [ -d /sys/firmware/efi ]; then
|
[ -d /boot/grub2/x86_64-efi ] && rm -rf /boot/grub2/x86_64-efi
|
||||||
echo "EFI detected .."
|
[ -d /boot/efi/EFI/redhat/x86_64-efi ] && rm -rf /boot/efi/EFI/redhat/x86_64-efi
|
||||||
grubenvdir='/boot/efi/EFI/redhat'
|
grub2-mkconfig -o /etc/grub2.cfg
|
||||||
else
|
|
||||||
echo "Legacy BIOS detected .."
|
|
||||||
grubenvdir='/boot/grub2'
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -d $grubenvdir/x86_64-efi ] && rm -rf $grubenvdir/x86_64-efi
|
|
||||||
grub2-mkconfig -o $grubenvdir/grub.cfg
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
echo "installing tboot"
|
|
||||||
make debug=y DISTDIR=$RPM_BUILD_ROOT install
|
make debug=y DISTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -95,84 +95,122 @@ make debug=y DISTDIR=$RPM_BUILD_ROOT install
|
|||||||
/boot/tboot-syms
|
/boot/tboot-syms
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Aug 26 2022 Tony Camuso <tcamuso@redhat.com> - 1:1.10.5-2
|
* Thu Aug 18 2022 Tony Camuso <tcamuso@redhat.com> - 1:1.10.5-2
|
||||||
- The install scriptlet in %post was not choosing the correct
|
- The install scriptlet in %post was choosing the first grub.cfg
|
||||||
grubenv directory. In RHEL8, the efi and legacy bios grubenv
|
file it encountered, which was /boot/efi/EFI/redhat/grub.cfg.
|
||||||
directories are different. This change assures that the
|
This is a stub that defines grub boot disk UUID necessary for
|
||||||
correct directory is used for grub.cfg and related modules.
|
proper grubenv setup, and it must not be overwritten or changed.
|
||||||
|
Modify the scriptlet to target /boot/grub2/grub.cfg
|
||||||
|
Additionally, remove any wrongly created /boot/grub2/x86_64-efi
|
||||||
|
directory and recreate the correct /boot/efi/EFI/redhat/grub.cfg
|
||||||
|
stub file.
|
||||||
Added a %postun section to cleanup when removing tboot with
|
Added a %postun section to cleanup when removing tboot with
|
||||||
dnf erase.
|
dnf erase.
|
||||||
Resolves: rhbz#2121836
|
Thanks to Lenny Szubowicz for the bash code to recreate the
|
||||||
|
/boot/efi/EFI/redhat/grub.cfg stub file.
|
||||||
|
Resolves: rhbz#2112236
|
||||||
|
|
||||||
* Wed Apr 20 2022 Tony Camuso <tcamuso@redhat.com> - 1:1.10.5-1
|
* Wed May 04 2022 Tony Camuso <tcamuso@redhat.com> - 1:1.10.5-1
|
||||||
Upgrade to tboot-1.10.5-1 for fixes and updates.
|
- Upgrade to tboot-1.10.5-1 for fixes and updates.
|
||||||
Added a scriptlet to the tboot.spec file to automatically install
|
- Added a Requires line to install grub2-efi-x64-modules
|
||||||
|
- Added a scriptlet to the tboot.spec file to automatically install
|
||||||
grub2-efi-x64-modules and move them to the correct directory.
|
grub2-efi-x64-modules and move them to the correct directory.
|
||||||
Resolves: rhbz#2040082
|
- Removed three patches that are no longer needed.
|
||||||
Resolves: rhbz#2041759
|
- Added two patches from upstream, one for a fix, the other cosemetic.
|
||||||
|
- Resolves: rhbz#2041766
|
||||||
|
Resolves: rhbz#2040083
|
||||||
|
|
||||||
* Thu Jun 10 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.1-1
|
* Thu Sep 30 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-6
|
||||||
Upgrade to tboot-1.10.2-1 provides some bug fixes and updates.
|
- Use sha256 as default hashing algorithm
|
||||||
Remove 0001-Do-not-install-man-pages-for-deprecated-tools.patch
|
Resolves: rhbz#1935448
|
||||||
from the git repo, since it is no longer needed.
|
|
||||||
Resolves: rhbz#1857068
|
|
||||||
Resolves: rhbz#1873296
|
|
||||||
Resolves: rhbz#1920386
|
|
||||||
|
|
||||||
* Mon Feb 22 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.0-1
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.10.2-5
|
||||||
Need to add BuildRequires: perl, since it has beem moved
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
from BuildRoot.
|
Related: rhbz#1991688
|
||||||
See: https://fedoraproject.org/wiki/Packaging:Perl#Build_Dependencies
|
|
||||||
Resolves: rhbz#1857068
|
|
||||||
|
|
||||||
* Mon Feb 22 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.0-1
|
* Wed Jul 28 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-4
|
||||||
Build problem creating directory for grub modules. We can't
|
- From Miroslave Vadkerti:
|
||||||
know if the modules are there, so it's up to the end user to
|
Onboarding tests to RHEL9 in BaseOS CI requires action, adding
|
||||||
find the modules and copy them to the correct location.
|
test configuration in our "dispatcher" configuration for RHEL9:
|
||||||
Specifically, for systems booting from EFI, the
|
https://gitlab.cee.redhat.com/baseos-qe/citool-config/blob/production/brew-dispatcher-rhel9.yaml
|
||||||
/boot/efi/EFI/redhat/x86_64-efi/multiboot2.mod file, if it
|
Test config was added for tboot in the following MR.
|
||||||
exists, must be copied to the /boot/efi/EFI/redhat/x86_64-efi/
|
https://gitlab.cee.redhat.com/baseos-qe/citool-config/-/merge_requests/2686
|
||||||
directory. If that file does not exist, then the system has
|
Resolves: rhbz#1922002
|
||||||
the wrong version of grub for using tboot in an EFI system.
|
|
||||||
Resolves: rhbz#1857068
|
|
||||||
|
|
||||||
* Fri Dec 11 2020 Tony Camuso <tcamuso@redhat.com> - 1:1.10.0-0
|
* Tue Jul 27 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-3
|
||||||
Upgrade to latest upstream version
|
- Add the %{optflags} and %{build_ldflags} macros to assure the
|
||||||
Added upstream patch to remove deprecated man pages
|
build meets RHEL security requirements.
|
||||||
Resolves: rhbz#1857068
|
Resolves: rhbz#1922002
|
||||||
|
|
||||||
* Tue Jun 23 2020 Tony Camuso <tcamuso@redhat.com> - 1:1.9.12-2
|
* Thu Jul 22 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-2
|
||||||
- Fix build issues with one upstream patch.
|
- Bump the NVR as a result of including the gating.yaml file in
|
||||||
This patch also reverts the previous patch concerning the
|
the git repo.
|
||||||
-Wno-address-of-packed-member cflag.
|
Resolves: rhbz#1922002
|
||||||
Resolves: rhbz#1847938
|
|
||||||
|
|
||||||
* Fri Jun 12 2020 Tony Camuso <tcamuso@redhat.com> - 1:1.9.12-1
|
* Mon Jun 21 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-1
|
||||||
- Add patch to revert "Disable GCC9 address-of-packed-member warning"
|
- The patches are for SSL3 compatibility. These can probably be
|
||||||
While it was able to build locally with 'rhpkg local', the brew
|
removed when upstream tboot fully implements SSL3.
|
||||||
build failed, because the compiler on the brew systems did not
|
- Upgrade to latest upstream.
|
||||||
recognized the new GCC9 command line flag:
|
- Remove trousers dependency.
|
||||||
-Wno-address-of-packed-member
|
Resolves: rhbz#1922002
|
||||||
|
Resolves: rhbz#1870520
|
||||||
|
Resolves: rhbz#1927374
|
||||||
|
|
||||||
* Fri May 29 2020 Tony Camuso <tcamuso@redhat.com> - 1:1.9.12-1
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.9.11-9
|
||||||
- Upgrade to latest upstream version
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
||||||
Resolves: rhbz#1790169
|
Related: rhbz#1971065
|
||||||
|
|
||||||
* Fri Nov 15 2019 Tony Camuso <tcamuso@redhat.com> - 1:1.9.10-1
|
* Thu May 27 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.9.11-8
|
||||||
- Rebase to the lastest upstream version.
|
- Add -Wno-error=deprecated-declarations to the Config.mk patch
|
||||||
Resolves: rhbz#1725661
|
Resolves: rhbz#1958031
|
||||||
|
|
||||||
* Fri Sep 7 2018 Tony Camuso <tcamuso@redhat.com> - 1:1.9.7-1
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.9.11-7
|
||||||
- Rebase to the latest upstream version.
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
Resolves: rhbz#1511799
|
|
||||||
- Do not override OPTFLAGS in the make
|
|
||||||
Resolves: rhbz#1620070
|
|
||||||
|
|
||||||
* Fri Jul 20 2018 Tony Camuso <tcamuso@redhat.com> - 1:1.9.6-3
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.11-6
|
||||||
- Incorporate latest upstream patches, including a newer version
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
of the OpenSSL patch in 1.9.6-2
|
|
||||||
Resolves: rhbz#1492771
|
* Fri Oct 30 2020 Jeff Law <law@redhat.com> - 1:1.9.11-5
|
||||||
Resolves: rhbz#1499435
|
- Re-enable -Wstringop-overflow and instead make the problematical
|
||||||
|
pointer volatile to avoid the false positive diagnostic
|
||||||
|
|
||||||
|
* Thu Oct 29 2020 Jeff Law <law@redhat.com> - 1:1.9.11-4
|
||||||
|
- Fix buglet exposed by gcc-11 -Warray-parameter
|
||||||
|
- Temporarily disable -Wstringop-overflow due to false positive in gcc-11
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Jeff Law <law@redhat.com> - 1:1.9.11-3
|
||||||
|
- Explicitly allow uninitialized variables in a few places that do it
|
||||||
|
- on purpose
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.11-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Apr 19 2020 Filipe Rosset <rosset.filipe@gmail.com> - 1:1.9.11-1
|
||||||
|
- Update to 1.9.11
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.10-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.10-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 14 2019 Yunying Sun <yunying.sun@intel.com> - 1:1.9.10-1
|
||||||
|
- Add patch to fix package build error
|
||||||
|
- Add build dependency to zlib-devel
|
||||||
|
- Update to latest release 1.9.10
|
||||||
|
|
||||||
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.8-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Oct 31 2018 Yunying Sun <yunying.sun@intel.com> - 1:1.9.8-1
|
||||||
|
- Updated to upstream 1.9.8 release
|
||||||
|
|
||||||
|
* Tue Sep 4 2018 Yunying Sun <yunying.sun@intel.com> - 1:1.9.7-1
|
||||||
|
- Updated to upstream 1.9.7 release
|
||||||
|
- Removed the patch for openssl 1.1 as it is included in 1.9.7 already
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9.6-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Tue Feb 06 2018 Tomáš Mráz <tmraz@redhat.com> - 1:1.9.6-2
|
* Tue Feb 06 2018 Tomáš Mráz <tmraz@redhat.com> - 1:1.9.6-2
|
||||||
- Patch to build with OpenSSL-1.1.x
|
- Patch to build with OpenSSL-1.1.x
|
||||||
|
Loading…
Reference in New Issue
Block a user