|
|
|
@ -1,24 +1,26 @@
|
|
|
|
|
%global gitdate 20211126
|
|
|
|
|
%global gitversion 1ff6fe1f43
|
|
|
|
|
|
|
|
|
|
Name: libtpms
|
|
|
|
|
Version: 0.9.1
|
|
|
|
|
Release: 4.%{gitdate}git%{gitversion}%{?dist}
|
|
|
|
|
|
|
|
|
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
|
|
|
|
License: BSD
|
|
|
|
|
Url: http://github.com/stefanberger/libtpms
|
|
|
|
|
Source0: libtpms-%{gitdate}.tar.xz
|
|
|
|
|
Patch0001: 0001-tpm2-Do-not-call-EVP_PKEY_CTX_set0_rsa_oaep_label-fo.patch
|
|
|
|
|
Patch0002: 0001-tpm2-Fix-size-check-in-CryptSecretDecrypt.patch
|
|
|
|
|
Patch0003: 0001-tpm2-When-writing-state-initialize-s_ContextSlotMask.patch
|
|
|
|
|
Patch0004: 0001-tpm2-Check-size-of-buffer-before-accessing-it-CVE-20.patch
|
|
|
|
|
Patch0005: 0001-tpm2-Return-TPM_RC_VALUE-upon-decryption-failure.patch
|
|
|
|
|
|
|
|
|
|
Version: 0.9.6
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
|
|
|
|
License: BSD-3-Clause AND LicenseRef-TCGL
|
|
|
|
|
|
|
|
|
|
URL: https://github.com/stefanberger/libtpms
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: %{url}/releases/download/v%{version}/v%{version}.tar.gz.asc#/%{name}-%{version}.tar.gz.asc
|
|
|
|
|
# https://github.com/stefanberger.gpg
|
|
|
|
|
Source2: gpgkey-B818B9CADF9089C2D5CEC66B75AD65802A0B4211.asc
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pkgconfig gawk sed
|
|
|
|
|
BuildRequires: automake autoconf libtool bash coreutils gcc-c++
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A library providing TPM functionality for VMs. Targeted for integration
|
|
|
|
@ -32,81 +34,118 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Libtpms header files and documentation.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{name}-%{gitdate}
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
NOCONFIGURE=1 sh autogen.sh
|
|
|
|
|
%configure --disable-static --with-tpm2 --without-tpm1 --with-openssl
|
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
|
%configure --disable-static --with-tpm2 --with-openssl
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
|
|
|
|
|
find %{buildroot} -type f -name '*.la' -print -delete
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README CHANGES
|
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
%{_libdir}/%{name}.so.0{,.*}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
|
%{_includedir}/%{name}/*.h
|
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_mandir}/man3/TPM*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 04 2024 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-4.20211126git1ff6fe1f43
|
|
|
|
|
- Backport "tpm2: Return TPM_RC_VALUE upon decryption failure"
|
|
|
|
|
Resolves: RHEL-58056
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.9.6-7
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 17 2023 Stefan Berger <stefanb@linux.ibm.com> - 0.9.6-3
|
|
|
|
|
- Set license to 'BSD and TCGL' from previous 'BSD' (BZ2219548)
|
|
|
|
|
|
|
|
|
|
* Wed Mar 01 2023 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-3.20211126git1ff6fe1f43
|
|
|
|
|
- Backport "tpm2: Check size of buffer before accessing it" (CVE-2023-1017 & CVE-2023-1018)
|
|
|
|
|
Resolves: rhbz#2173960
|
|
|
|
|
Resolves: rhbz#2173967
|
|
|
|
|
* Sat Mar 18 2023 Todd Zullinger <tmz@pobox.com> - 0.9.6-2
|
|
|
|
|
- verify upstream source signature
|
|
|
|
|
|
|
|
|
|
* Mon Jun 20 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-2.20211126git1ff6fe1f43
|
|
|
|
|
- Backport s_ContextSlotMask initialization fix
|
|
|
|
|
Resolves: rhbz#2035731
|
|
|
|
|
* Tue Feb 28 2023 Stefan Berger <stefanb@linux.ibm.com> - 0.9.6-1
|
|
|
|
|
- Build of libtpms 0.9.6 with fixes for CVE-2023-1017 & CVE-2023-1018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-1.20211126git1ff6fe1f43
|
|
|
|
|
- Backport RSA/OAEP fixes.
|
|
|
|
|
Resolves: rhbz#2093651
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 01 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-0.20211126git1ff6fe1f43
|
|
|
|
|
- Rebase to 0.9.1
|
|
|
|
|
Resolves: rhbz#2027951
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 9 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.0-0.20211004gitdc4e3f6313
|
|
|
|
|
- Rebase to 0.9.0, disable TPM 1.2
|
|
|
|
|
Resolves: rhbz#1990152 & rhbz#2021628
|
|
|
|
|
* Fri Jul 01 2022 Stefan Berger <stefanb@linux.ibm.com> - 0.9.5-1
|
|
|
|
|
- Build of libtpms 0.9.5
|
|
|
|
|
|
|
|
|
|
* Tue Aug 31 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.7
|
|
|
|
|
- Fixes CVE-2021-3746 libtpms: out-of-bounds access via specially crafted TPM 2 command packets
|
|
|
|
|
Resolves: rhbz#1999303
|
|
|
|
|
* Wed Apr 27 2022 Fabio Valentini <decathorpe@gmail.com> - 0.9.4-2
|
|
|
|
|
- Use standard method for fetching a GitHub release tarball.
|
|
|
|
|
- Fix Versioning scheme to confirm with Packaging Guidelines.
|
|
|
|
|
- Tighten file globs to match Packaging Guidelines.
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Mon Apr 25 2022 Stefan Berger <stefanb@linux.ibm.com> - 0.9.4-1.20220425gite4d68670e1
|
|
|
|
|
- Build of libtpms 0.9.4
|
|
|
|
|
|
|
|
|
|
* Wed Jun 30 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.5
|
|
|
|
|
- Fixes CVE-2021-3623: out-of-bounds access when trying to resume the state of the vTPM
|
|
|
|
|
Resolves: rhbz#1976814
|
|
|
|
|
* Mon Mar 07 2022 Stefan Berger <stefanb@linux.ibm.com> - 0.9.3-1.20220307gita63c51805e
|
|
|
|
|
- Build of libtpms 0.9.3
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-0.20220106gite81d634c27.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 18 2021 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.3
|
|
|
|
|
- Add -Wno-error=deprecated-declarations, to ignore OpenSSL 3.0 deprecation warnings.
|
|
|
|
|
Fixes: rhbz#1958054
|
|
|
|
|
* Thu Jan 06 2022 Stefan Berger <stefanb@linux.ibm.com> - 0.9.2-0.20220106gite81d634c27
|
|
|
|
|
- Build of libtpms 0.9.2
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-0.20210301git729fc6a4ca.2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Nov 26 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.9.1-0.20211126git1ff6fe1f43
|
|
|
|
|
- Build of libtpms 0.9.1
|
|
|
|
|
|
|
|
|
|
* Mon Oct 04 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.9.0-0.20211004gitdc4e3f6313
|
|
|
|
|
- Build of libtpms 0.9.0
|
|
|
|
|
|
|
|
|
|
* Thu Sep 16 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.7-0.20210916gitfb9f0a61e8
|
|
|
|
|
- Build upcoming libtpms 0.8.7
|
|
|
|
|
|
|
|
|
|
* Wed Sep 15 2021 Sahana Prasad <sahana@redhat.com> - 0.8.6-0.20210910git7a4d46a119.3
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.6-0.20210910git7a4d46a119.2
|
|
|
|
|
- Build with -Wno-deprecated-declarations
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.8.6-0.20210910git7a4d46a119.1
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Fri Sep 10 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.6-1.20210910git7a4d46a119
|
|
|
|
|
- tpm2: Marshal event sequence objects' hash state
|
|
|
|
|
|
|
|
|
|
* Wed Sep 01 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.5-1.20210901git18ba4c0206
|
|
|
|
|
- Build of libtpms 0.8.5
|
|
|
|
|
|
|
|
|
|
* Wed Aug 11 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.4-1.20210625gita594c4692a
|
|
|
|
|
- Applied patches resolving issues solved in upcoming 0.8.5
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-0.20210624gita594c4692a.2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 24 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.4-0.20210625gita594c4692a
|
|
|
|
|
- tpm2: Reset too large size indicators in TPM2B to avoid access beyond buffer
|
|
|
|
|
- tpm2: Restore original value in buffer if unmarshalled one was illegal
|
|
|
|
|
|
|
|
|
|
* Tue Jun 01 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.3-0.20210601git9e736d5281
|
|
|
|
|
- tpm2: Work-around for Windows 2016 & 2019 bug related to ContextLoad
|
|
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.2-0.20210301git729fc6a4ca
|
|
|
|
|
- tpm2: CryptSym: fix AES output IV; a CVE has been filed for this issue
|
|
|
|
@ -114,6 +153,9 @@ find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
|
|
|
|
|
* Sat Feb 27 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.1-0.20210227git5bf2746e47
|
|
|
|
|
- Fixed a context save and suspend/resume problem when public keys are loaded
|
|
|
|
|
|
|
|
|
|
* Thu Feb 25 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.8.0-0.20210225git3fd4b94903
|
|
|
|
|
- Release of v0.8.0
|
|
|
|
|
|
|
|
|
|
* Thu Feb 18 2021 Stefan Berger <stefanb@linux.ibm.com> - 0.7.5-0.20210218gite271498466
|
|
|
|
|
- Addressed UBSAN and cppcheck detected issues
|
|
|
|
|
- Return proper size of ECC Parameters to pass HLK tests
|
|
|
|
|