From 2ccdd2a027bb0d72b4aeb836b96f548606ca6dfdccc6f81cb9557409d72443ae Mon Sep 17 00:00:00 2001 From: Matthias Gerstner Date: Mon, 2 Jul 2018 09:29:58 +0000 Subject: [PATCH] - 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 --- fix_dlopen.patch | 13 +++++++++++++ tpm2.0-abrmd.changes | 7 +++++++ tpm2.0-abrmd.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 fix_dlopen.patch diff --git a/fix_dlopen.patch b/fix_dlopen.patch new file mode 100644 index 0000000..e47e2f8 --- /dev/null +++ b/fix_dlopen.patch @@ -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."); diff --git a/tpm2.0-abrmd.changes b/tpm2.0-abrmd.changes index 441a24f..2afa373 100644 --- a/tpm2.0-abrmd.changes +++ b/tpm2.0-abrmd.changes @@ -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 diff --git a/tpm2.0-abrmd.spec b/tpm2.0-abrmd.spec index 4678646..0063735 100644 --- a/tpm2.0-abrmd.spec +++ b/tpm2.0-abrmd.spec @@ -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"