- add fix_dlopen.patch: fixes an issue with dlopen()'ing the tcti-device

library from tpm2-0-tss. See
  https://github.com/tpm2-software/tpm2-abrmd/issues/486.

OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-abrmd?expand=0&rev=20
This commit is contained in:
Matthias Gerstner 2018-07-02 09:29:58 +00:00 committed by Git OBS Bridge
parent 5fe02cf67b
commit 2ccdd2a027
3 changed files with 22 additions and 0 deletions

13
fix_dlopen.patch Normal file
View File

@ -0,0 +1,13 @@
Index: tpm2-abrmd-2.0.0/src/tcti-util.c
===================================================================
--- tpm2-abrmd-2.0.0.orig/src/tcti-util.c
+++ tpm2-abrmd-2.0.0/src/tcti-util.c
@@ -53,7 +53,7 @@ tcti_util_discover_info (const char *fil
if (*tcti_dl_handle == NULL) {
size = snprintf (filename_xfrm,
sizeof (filename_xfrm),
- "libtss2-tcti-%s.so.0",
+ "%s.0",
filename);
if (size >= sizeof (filename_xfrm)) {
g_critical ("TCTI name truncated in transform.");

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 2 09:27:43 UTC 2018 - matthias.gerstner@suse.com
- add fix_dlopen.patch: fixes an issue with dlopen()'ing the tcti-device
library from tpm2-0-tss. See
https://github.com/tpm2-software/tpm2-abrmd/issues/486.
-------------------------------------------------------------------
Fri Jun 29 11:43:08 UTC 2018 - matthias.gerstner@suse.com

View File

@ -35,6 +35,7 @@ BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(tss2-sys)
Requires(pre): pwdutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: fix_dlopen.patch
%description
The tpm2.0-abrmd package provides the TPM2 Access Broker & Resource Manager.
@ -65,6 +66,7 @@ use with the SAPI library (libtss2-sys) like any other TCTI.
%prep
%setup -q -n tpm2-abrmd-%{version}
%patch0 -p1
%build
export CFLAGS="%optflags -fPIE"