2016-03-24 13:32:00 +01:00
|
|
|
#
|
2016-08-22 14:02:21 +02:00
|
|
|
# spec file for package tpm2.0-tools
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
2021-01-28 11:50:59 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-26 09:43:27 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
|
|
|
|
2016-08-22 14:02:21 +02:00
|
|
|
|
2021-06-15 11:48:43 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2016-03-24 14:51:15 +01:00
|
|
|
Name: tpm2.0-tools
|
- add 0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch: no longer use a
fixed AES key in the context of the tpm2_import command. Fixes CVE-2021-3565
(bsc#1186490).
- drop fix_pie_linking.patch: now contained in upstream tarball
- drop fix_warnings.patch: now contained in upstream tarball
- update to upstream version 5.1:
- Minimum tpm2-tss version dependency bumped to 3.1.0
- Minimum tpm2-abrmd version dependency bumped to 2.4.0
- tss2:
- Support in tools for PolicyRef inclusion in policy search per latest TSS.
- Support to use TPM objects protected by a policy with PolicySigned.
- Enable backward compatibility to old Fapi callback API.
- Fix PCR selection for tss2 quote.
- Support policy signed policies by implementing Fapi_SetSignCB.
- Command/ response parameter support for auditing and pHash policies:
- lib/tpm2_util.c: Add method to determine hashing alg for cp/rphash
- Add support to calculate rphash for tpm2_create, tpm2_activatecredential,
tpm2_certify, tpm2_certifycreation, tpm2_changeauth, tpm2_changeeps,
tpm2_changepps, tpm2_nvdefine, tpm2_nvextend, tpm2_unseal
- Add support to calculate cphash for tpm2_changeeps, tpm2_changepps.
- Session-support:
- tpm2_sessionconfig: Add tool to display and configure session attributes.
- tpm2_getrandom: Fix— session input was hardcoded for audit-only
- tpm2_startauthsession: Add option to specify the bind object and its
authorization value.
- tpm2_startauthsession: support for bounded-only session.
- tpm2_startauthsession: support for salted-only session.
- tpm2_startauthsession: add option to specify an hmac session type.
- Add support for specifying non-authorization sessions for audit and
parameter encryption for tpm2_getrandom, tpm2_create, tpm2_nvextend,
OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=70
2021-05-28 12:32:05 +02:00
|
|
|
Version: 5.1
|
2016-03-24 13:32:00 +01:00
|
|
|
Release: 0
|
2016-03-24 14:51:15 +01:00
|
|
|
Summary: Trusted Platform Module (TPM) 2.0 administration tools
|
2016-04-05 15:46:01 +02:00
|
|
|
License: BSD-3-Clause
|
2016-03-24 13:32:00 +01:00
|
|
|
Group: Productivity/Security
|
2020-10-22 14:14:07 +02:00
|
|
|
URL: https://github.com/tpm2-software/tpm2-tools/releases
|
2018-02-22 12:21:56 +01:00
|
|
|
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/tpm2-tools-%{version}.tar.gz
|
2019-12-11 14:30:50 +01:00
|
|
|
Patch0: fix_bogus_warning.patch
|
- add 0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch: no longer use a
fixed AES key in the context of the tpm2_import command. Fixes CVE-2021-3565
(bsc#1186490).
- drop fix_pie_linking.patch: now contained in upstream tarball
- drop fix_warnings.patch: now contained in upstream tarball
- update to upstream version 5.1:
- Minimum tpm2-tss version dependency bumped to 3.1.0
- Minimum tpm2-abrmd version dependency bumped to 2.4.0
- tss2:
- Support in tools for PolicyRef inclusion in policy search per latest TSS.
- Support to use TPM objects protected by a policy with PolicySigned.
- Enable backward compatibility to old Fapi callback API.
- Fix PCR selection for tss2 quote.
- Support policy signed policies by implementing Fapi_SetSignCB.
- Command/ response parameter support for auditing and pHash policies:
- lib/tpm2_util.c: Add method to determine hashing alg for cp/rphash
- Add support to calculate rphash for tpm2_create, tpm2_activatecredential,
tpm2_certify, tpm2_certifycreation, tpm2_changeauth, tpm2_changeeps,
tpm2_changepps, tpm2_nvdefine, tpm2_nvextend, tpm2_unseal
- Add support to calculate cphash for tpm2_changeeps, tpm2_changepps.
- Session-support:
- tpm2_sessionconfig: Add tool to display and configure session attributes.
- tpm2_getrandom: Fix— session input was hardcoded for audit-only
- tpm2_startauthsession: Add option to specify the bind object and its
authorization value.
- tpm2_startauthsession: support for bounded-only session.
- tpm2_startauthsession: support for salted-only session.
- tpm2_startauthsession: add option to specify an hmac session type.
- Add support for specifying non-authorization sessions for audit and
parameter encryption for tpm2_getrandom, tpm2_create, tpm2_nvextend,
OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=70
2021-05-28 12:32:05 +02:00
|
|
|
Patch1: 0001-tpm2_import-fix-fixed-AES-key-CVE-2021-3565.patch
|
2016-03-24 17:56:34 +01:00
|
|
|
BuildRequires: autoconf-archive
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRequires: automake
|
2016-08-22 14:02:21 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRequires: libtool
|
2020-10-22 15:30:56 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2018-03-07 16:44:46 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2021-06-14 10:57:05 +02:00
|
|
|
%ifnarch %{ix86}
|
2018-05-02 13:07:16 +02:00
|
|
|
# releases prior to 3.0.4 required pandoc for building the man pages. On SLE
|
|
|
|
# we don't have pandoc and it requires a complete haskell stack so adding it
|
|
|
|
# is out of the question just for man pages.
|
|
|
|
#
|
|
|
|
# since 3.0.4 the man pages are shipped with the distribution tarball and we
|
|
|
|
# don't need to generate them any more. On openSUSE we can still keep this
|
|
|
|
# dependency for having fresh builds of the man pages (if that helps
|
|
|
|
# anything?).
|
2018-06-29 16:14:45 +02:00
|
|
|
#
|
|
|
|
# Update: In the 3.1.0 a required patch is still missing and the man pages
|
|
|
|
# won't be installed. they're shipped, though. so if pandoc isn't installed we
|
|
|
|
# need to install them explicitly.
|
2018-02-22 12:21:56 +01:00
|
|
|
BuildRequires: pandoc
|
2018-03-07 15:45:11 +01:00
|
|
|
%endif
|
2021-06-14 10:57:05 +02:00
|
|
|
%endif
|
2017-03-06 17:23:28 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: tpm2-0-tss-devel
|
2017-08-21 18:23:48 +02:00
|
|
|
BuildRequires: tpm2.0-abrmd-devel
|
2016-08-22 14:02:21 +02:00
|
|
|
BuildRequires: unzip
|
2017-08-03 10:12:24 +02:00
|
|
|
Recommends: tpm2.0-abrmd
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Trusted Computing is a set of specifications published by the Trusted
|
|
|
|
Computing Group (TCG). The Trusted Platform Module (TPM) is the
|
2016-08-22 14:02:21 +02:00
|
|
|
hardware component for Trusted Computing. The tpm2.0-tools package
|
|
|
|
provides tools for enablement and configuration of the TPM 2.0 and
|
|
|
|
associated interfaces.
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%prep
|
2017-11-09 15:39:53 +01:00
|
|
|
%setup -q -n tpm2-tools-%{version}
|
2019-12-11 14:30:50 +01:00
|
|
|
%patch0 -p1
|
2021-01-28 11:50:59 +01:00
|
|
|
%patch1 -p1
|
2016-03-24 17:56:34 +01:00
|
|
|
|
2016-03-24 13:32:00 +01:00
|
|
|
%build
|
2021-01-28 12:16:25 +01:00
|
|
|
# TODO: remove autoreconf once fix_pie_linking patch is no longer needed
|
2021-05-04 10:56:15 +02:00
|
|
|
# until then we need to repair the version specification which configure.ac
|
|
|
|
# wants to read from GIT which isn't there.
|
|
|
|
sed -i 's/m4_esyscmd_s([^)]\+)/%{version}/g' configure.ac
|
2021-01-28 12:16:25 +01:00
|
|
|
autoreconf -fvi
|
2016-03-24 17:56:34 +01:00
|
|
|
%configure --disable-static
|
2016-03-24 13:32:00 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2021-02-02 13:23:20 +01:00
|
|
|
%doc README.md doc/CHANGELOG.md
|
|
|
|
%license doc/LICENSE
|
2021-01-28 11:50:59 +01:00
|
|
|
/usr/bin/tpm2*
|
|
|
|
/usr/bin/tss2*
|
|
|
|
%{_mandir}/man1/tpm2*
|
|
|
|
%{_mandir}/man1/tss2*
|
2019-12-11 14:30:50 +01:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%changelog
|