Blame SPECS/libtpms.spec

609e01
%global gitdate   20211126
609e01
%global gitversion 1ff6fe1f43
609e01
609e01
Name:           libtpms
609e01
Version:        0.9.1
76a1ca
Release:        3.%{gitdate}git%{gitversion}%{?dist}
609e01
609e01
Summary: Library providing Trusted Platform Module (TPM) functionality
609e01
License:        BSD
609e01
Url:            http://github.com/stefanberger/libtpms
609e01
Source0:        libtpms-%{gitdate}.tar.xz
d6ed27
Patch0001:      0001-tpm2-Do-not-call-EVP_PKEY_CTX_set0_rsa_oaep_label-fo.patch
d6ed27
Patch0002:      0001-tpm2-Fix-size-check-in-CryptSecretDecrypt.patch
d6ed27
Patch0003:      0001-tpm2-When-writing-state-initialize-s_ContextSlotMask.patch
76a1ca
Patch0004:      0001-tpm2-Check-size-of-buffer-before-accessing-it-CVE-20.patch
609e01
609e01
BuildRequires:  openssl-devel
609e01
BuildRequires:  pkgconfig gawk sed
609e01
BuildRequires:  automake autoconf libtool bash coreutils gcc-c++
609e01
BuildRequires: make
609e01
609e01
%description
609e01
A library providing TPM functionality for VMs. Targeted for integration
609e01
into Qemu.
609e01
609e01
%package        devel
609e01
Summary:        Include files for libtpms
609e01
Requires:       %{name}%{?_isa} = %{version}-%{release}
609e01
609e01
%description   devel
609e01
Libtpms header files and documentation.
609e01
609e01
%prep
609e01
%autosetup -p1 -n %{name}-%{gitdate}
609e01
%build
609e01
NOCONFIGURE=1 sh autogen.sh
609e01
%configure --disable-static --with-tpm2 --without-tpm1 --with-openssl
609e01
%make_build
609e01
609e01
%check
609e01
make check
609e01
609e01
%install
609e01
%make_install
609e01
find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
609e01
609e01
%ldconfig_scriptlets
609e01
609e01
%files
609e01
%license LICENSE
609e01
%doc README CHANGES
609e01
%{_libdir}/lib*.so.*
609e01
609e01
%files devel
609e01
%dir %{_includedir}/%{name}
609e01
%{_includedir}/%{name}/*.h
609e01
%{_libdir}/lib*.so
609e01
%{_libdir}/pkgconfig/*.pc
609e01
%{_mandir}/man3/*
609e01
609e01
%changelog
76a1ca
* Wed Mar 01 2023 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-3.20211126git1ff6fe1f43
76a1ca
- Backport "tpm2: Check size of buffer before accessing it" (CVE-2023-1017 & CVE-2023-1018)
76a1ca
  Resolves: rhbz#2173960
76a1ca
  Resolves: rhbz#2173967
76a1ca
d6ed27
* Mon Jun 20 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-2.20211126git1ff6fe1f43
d6ed27
- Backport s_ContextSlotMask initialization fix
d6ed27
  Resolves: rhbz#2035731
d6ed27
d6ed27
* Mon Jun 13 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-1.20211126git1ff6fe1f43
d6ed27
- Backport RSA/OAEP fixes.
d6ed27
  Resolves: rhbz#2093651
d6ed27
609e01
* Wed Dec 01 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-0.20211126git1ff6fe1f43
609e01
- Rebase to 0.9.1
609e01
  Resolves: rhbz#2027951
609e01
609e01
* Tue Nov  9 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.0-0.20211004gitdc4e3f6313
609e01
- Rebase to 0.9.0, disable TPM 1.2
609e01
  Resolves: rhbz#1990152 & rhbz#2021628
609e01
609e01
* Tue Aug 31 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.7
609e01
- Fixes CVE-2021-3746 libtpms: out-of-bounds access via specially crafted TPM 2 command packets
609e01
  Resolves: rhbz#1999303
609e01
609e01
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.6
609e01
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
609e01
  Related: rhbz#1991688
609e01
609e01
* Wed Jun 30 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.5
609e01
- Fixes CVE-2021-3623: out-of-bounds access when trying to resume the state of the vTPM
609e01
  Resolves: rhbz#1976814
609e01
609e01
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.4
609e01
- Rebuilt for RHEL 9 BETA for openssl 3.0
609e01
  Related: rhbz#1971065
609e01
609e01
* Tue May 18 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.3
609e01
- Add -Wno-error=deprecated-declarations, to ignore OpenSSL 3.0 deprecation warnings.
609e01
  Fixes: rhbz#1958054
609e01
609e01
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.2
609e01
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
609e01
609e01
* Mon Mar 01 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.2-0.20210301git729fc6a4ca
609e01
- tpm2: CryptSym: fix AES output IV; a CVE has been filed for this issue
609e01
609e01
* Sat Feb 27 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.1-0.20210227git5bf2746e47
609e01
- Fixed a context save and suspend/resume problem when public keys are loaded
609e01
609e01
* Thu Feb 18 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.7.5-0.20210218gite271498466
609e01
- Addressed UBSAN and cppcheck detected issues
609e01
- Return proper size of ECC Parameters to pass HLK tests
609e01
609e01
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-0.20201031git2452a24dab.1
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
609e01
609e01
* Sat Oct 31 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.4-0.20201031git2452a24dab
609e01
- Follow stable-0.7.0 branch to v0.7.4 with security-related fixes
609e01
609e01
* Fri Jul 31 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.3-0.20200731git1d392d466a
609e01
- Follow stable-0.7.0 branch to v0.7.3
609e01
609e01
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-0.20200527git7325acb477.1
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
609e01
609e01
* Wed May 27 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.2-0.20200527git7325acb477
609e01
- Following stable-0.7.0 branch for TPM 2 related fixes: RSA decryption,
609e01
  PSS salt length, symmetric decryption (padding)
609e01
- Under certain circumstances an RSA decryption could cause a buffer overflow causing
609e01
  termination of the program (swtpm)
609e01
609e01
* Wed May 20 2020 Stefan Berger <stefanb@linux.ibm.com> - 0.7.1-0.20200520git8fe99d1fd0
609e01
- Following stable-0.7.0 branch for TPM 2 related fixes; v0.7.1 + gcc related patch
609e01
- elliptic curve fixes
609e01
- MANUFACTURER changed from "IBM " to "IBM"
609e01
- gcc 10 related fix
609e01
609e01
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.20191018gitdc116933b7.1
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
609e01
609e01
* Fri Oct 18 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20191018gitdc116933b7
609e01
- Following stable-0.7.0 branch for TPM 1.2 related bugfix
609e01
609e01
* Tue Oct 08 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20191008gitc26e8f7b08
609e01
- Following stable-0.7.0 branch for bug fix
609e01
609e01
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-0.20190719gitd061d8065b.2
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
609e01
609e01
* Fri Jul 19 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.7.0-0.20190719gitd061d8065b
609e01
- Update to v0.7.0
609e01
609e01
* Fri May 10 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.6.1-0.20190510gitb244bdf6e2
609e01
- Applied bugfix for CMAC
609e01
609e01
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-0.20190121git9dc915572b.1
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
609e01
609e01
* Mon Jan 21 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.6.1-0.20190121git9dc915572b
609e01
- Libtpms was updated to rev. 150 of TPM 2.0 code
609e01
- following branch stable-0.6.0
609e01
609e01
* Tue Dec 11 2018 Stefan Berger <stefanb@linux.ibm.com> - 0.6.0-0.20181211gitba56737b93
609e01
- Following bugfixes in libtpms
609e01
609e01
* Wed Oct 31 2018 Stefan Berger <stefanb@linux.ibm.com> - 0.6.0-0.20181031git0466fcf6a4
609e01
- Following improvements in libtpms
609e01
609e01
* Tue Sep 18 2018 Stefan Berger 
609e01
- Fixed changelog
609e01
609e01
* Mon Sep 17 2018 Stefan Berger 
609e01
- Build snapshot from git after libtpms fix.
609e01
609e01
* Fri Sep 14 2018 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.6.0-0.20180914git4111bd1bcf
609e01
- Build snapshot from git, simplify spec
609e01
609e01
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-12
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
609e01
609e01
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-11
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
609e01
609e01
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-10
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
609e01
609e01
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-9
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
609e01
609e01
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-8
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
609e01
609e01
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-7
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
609e01
609e01
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-6
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
609e01
609e01
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
609e01
609e01
* Sat Aug 16 2014 Stefan Berger - 0.5.2-3
609e01
- do not include libtpms.la in rpm
609e01
609e01
* Mon Jul 14 2014 Stefan Berger - 0.5.2-2
609e01
- Added patches
609e01
609e01
* Mon Jun 30 2014 Stefan Berger - 0.5.2-1
609e01
- Updated to version 0.5.2
609e01
- coverity fixes
609e01
- fixes for ARM64 using __aarch64__
609e01
609e01
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-20.1
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
609e01
609e01
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
609e01
609e01
* Mon Mar 25 2013 Stefan Berger - 0.5.1-18
609e01
- Ran autoreconf for support of aarch64
609e01
- Checking for __arm64__ in code
609e01
609e01
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-17
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
609e01
609e01
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
609e01
609e01
* Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
609e01
- Add dist tag as required by package guidelines
609e01
609e01
* Fri Jan 27 2012 Stefan Berger - 0.5.1-14
609e01
- fix gcc-4.7 compilation problem
609e01
609e01
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-13
609e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
609e01
609e01
* Tue Dec 20 2011 Dan Horák <dan[at]danny.cz> - 0.5.1-12
609e01
- fix build on secondary arches
609e01
609e01
* Wed Nov 2 2011 Stefan Berger - 0.5.1-11
609e01
- added (lib)gmp as runtime dependency
609e01
609e01
* Sat Oct 8 2011 Stefan Berger - 0.5.1-10
609e01
- internal fixes; callback fixes
609e01
609e01
* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
609e01
- new directory structure and build process
609e01
609e01
* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
609e01
- added pkgconfig as build dependency
609e01
- enabling __powerpc__ build following Bz 728220
609e01
609e01
* Wed May 25 2011 Stefan Berger - 0.5.1-7
609e01
- increasing NVRAM area space to have enough room for certificates
609e01
609e01
* Wed May 25 2011 Stefan Berger - 0.5.1-6
609e01
- adding libtpms.pc pkg-config file
609e01
609e01
* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
609e01
- adding BuildRequires for nss-softokn-freebl-static
609e01
- several libtpms-internal changes around state serialization and 
609e01
  deserialization
609e01
- fixes to libtpms makefile (makefile-libtpms)
609e01
- adding build_type to generate a debug or production build
609e01
- need nss-devel to have nss-config
609e01
609e01
* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
609e01
- small fixes to libtpms makefile
609e01
609e01
* Fri Feb 25 2011 Stefan Berger - 0.5.1-3
609e01
- removing release from tar ball name
609e01
- Use {?_smp_mflags} for make rather than hardcoding it
609e01
- Fixing post and postun scripts; removing the scripts for devel package
609e01
- Fixing usage of defattr
609e01
- Adding version information into the changelog headers and spaces between the changelog entries
609e01
- Adding LICENSE, README and CHANGELOG file into tar ball and main rpm
609e01
- Removing clean section
609e01
- removed command to clean the build root
609e01
- adding library version to the libries required for building and during
609e01
  runtime
609e01
- Extended Requires in devel package with {?_isa}
609e01
609e01
* Fri Feb 18 2011 Stefan Berger - 0.5.1-2
609e01
- make rpmlint happy by replacing tabs with spaces
609e01
- providing a valid URL for the tgz file
609e01
- release is now 2 -> 0.5.1-2
609e01
609e01
* Mon Jan 17 2011 Stefan Berger - 0.5.1-1
609e01
- Update version to 0.5.1
609e01
609e01
* Fri Jan 14 2011 Stefan Berger - 0.5.0-1
609e01
- Changes following Fedora review comments
609e01
609e01
* Thu Dec 2 2010 Stefan Berger
609e01
- Small tweaks after reading the FedoreCore packaging requirements
609e01
609e01
* Tue Nov 16 2010 Stefan Berger
609e01
- Created initial version of rpm spec files
609e01
- Version of library is now 0.5.0
609e01
- Debuginfo rpm is built but empty -- seems to be a known problem
609e01
  Check https://bugzilla.redhat.com/show_bug.cgi?id=209316