From e248e2535a84e1ad4590c2b73f8bc582967126fbaa9245ff561cc2075a52c41a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 8 Feb 2017 13:48:45 +0000 Subject: [PATCH] - Updated to 1.0 - Added - Travis-CI integration with GitHub - Unit tests for primitive (un)?marshal functions. - Example systemd unit for resourcemgr. - Allow for unit tests to be enabled selectively. - added pkg-config files for libraries - Changed - move simulator initialization code to socket TCTI init function. - socket TCTI finalize no longer frees context - rename libtss2 to libsapi - rename libtcti_device to libtcti-device - rename libtcti_socket to libtcti-socket - move $(includedir)/tss to $(includedir)/sapi - Move default compiler flags to config.site file. - Fixed - Fix run away resourcemgr threads by closing client sockets when resourcemgr recv() call returns 0. - Set MSG_NOSIGNAL for client connections to avoid SIGPIPE killing resourcemgr. - Fixes to handling of persistent objects by resourcemgr. - Removed - Semicolon from TPMA_* macros definitions. - Windows build files. - SAPI_CLIENT macro tests. - Security - Fix buffer overflow in resourcemgr. - use sample resourcemanager.service OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=25 --- 1.0.tar.gz | 3 +++ resourcemgr.service | 9 --------- tpm2-0-tss-0.98.tar.gz | 3 --- tpm2-0-tss.changes | 30 ++++++++++++++++++++++++++++++ tpm2-0-tss.spec | 12 ++++++------ 5 files changed, 39 insertions(+), 18 deletions(-) create mode 100644 1.0.tar.gz delete mode 100644 resourcemgr.service delete mode 100644 tpm2-0-tss-0.98.tar.gz diff --git a/1.0.tar.gz b/1.0.tar.gz new file mode 100644 index 0000000..76d40ce --- /dev/null +++ b/1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5697cfe7f4fd44d6ae1ec03cddb6b44d5cf5cd13e134c7238049551d1615488 +size 3790493 diff --git a/resourcemgr.service b/resourcemgr.service deleted file mode 100644 index 9dcf41a..0000000 --- a/resourcemgr.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=TPM 2.0 Core Services Daemon - -[Service] -Type=forking -ExecStart=/usr/sbin/resourcemgr - -[Install] -WantedBy=multi-user.target diff --git a/tpm2-0-tss-0.98.tar.gz b/tpm2-0-tss-0.98.tar.gz deleted file mode 100644 index 9452184..0000000 --- a/tpm2-0-tss-0.98.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7be3f9f2473506ab06a3f06ebd8ea0920c317e7e14c5ca7ce54e58e8b48b9232 -size 3742841 diff --git a/tpm2-0-tss.changes b/tpm2-0-tss.changes index b409797..4a40c8e 100644 --- a/tpm2-0-tss.changes +++ b/tpm2-0-tss.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Wed Feb 8 13:43:55 UTC 2017 - meissner@suse.com + +- Updated to 1.0 + - Added + - Travis-CI integration with GitHub + - Unit tests for primitive (un)?marshal functions. + - Example systemd unit for resourcemgr. + - Allow for unit tests to be enabled selectively. + - added pkg-config files for libraries + - Changed + - move simulator initialization code to socket TCTI init function. + - socket TCTI finalize no longer frees context + - rename libtss2 to libsapi + - rename libtcti_device to libtcti-device + - rename libtcti_socket to libtcti-socket + - move $(includedir)/tss to $(includedir)/sapi + - Move default compiler flags to config.site file. + - Fixed + - Fix run away resourcemgr threads by closing client sockets when resourcemgr recv() call returns 0. + - Set MSG_NOSIGNAL for client connections to avoid SIGPIPE killing resourcemgr. + - Fixes to handling of persistent objects by resourcemgr. + - Removed + - Semicolon from TPMA_* macros definitions. + - Windows build files. + - SAPI_CLIENT macro tests. + - Security + - Fix buffer overflow in resourcemgr. +- use sample resourcemanager.service + ------------------------------------------------------------------- Sat Aug 6 19:28:27 UTC 2016 - meissner@suse.com diff --git a/tpm2-0-tss.spec b/tpm2-0-tss.spec index 3c1dca0..3ec924c 100644 --- a/tpm2-0-tss.spec +++ b/tpm2-0-tss.spec @@ -1,7 +1,7 @@ # # spec file for package tpm2-0-tss # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,13 @@ Name: tpm2-0-tss -Version: 0.98 +Version: 1.0 Release: 0 Summary: TSS (TCG Software Stack) access library for TPM 2.0 chips License: BSD-2-Clause Group: Productivity/Security Url: https://github.com/01org/TPM2.0-TSS -Source0: %{name}-%{version}.tar.gz -Source1: resourcemgr.service +Source0: https://github.com/01org/TPM2.0-TSS/archive/%{version}.tar.gz Source2: baselibs.conf BuildRequires: automake BuildRequires: gcc-c++ @@ -60,7 +59,7 @@ This package provides the library to access the TSS (TCG Software Stack) for accessing TPM 2.0 chips. %prep -%setup -q +%setup -q -n TPM2.0-TSS-%{version} %build bash bootstrap @@ -70,7 +69,8 @@ make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread %install %make_install find %{buildroot} -type f -name "*.la" -delete -print -install -D -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/resourcemgr.service +install -D -m 0644 contrib/resourcemgr.service %{buildroot}/%{_unitdir}/resourcemgr.service +sed -e 's#usr/local/sbin/#usr/sbin#;' -i %{buildroot}/%{_unitdir}/resourcemgr.service ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr %post -n libtss2-0 -p /sbin/ldconfig