Date
1 - 3 of 3
[meta-security][PATCH] tpm2-tools: libtss added to RDEPENDS
Michał Kotyla
To use tpm2-tools like tpm2_pcrread on the system image should be install=
ed
additional software. Without adding libtss packages to the RDEPENDS attem=
pt to
run with tss2-tcti fails like:
ERROR:tcti:../tpm2-tss-3.0.3/src/tss2-tcti/tcti-swtpm.c:592:
Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
---
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb b/meta-tp=
m/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index dbd324a..cb2e3d8 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -6,6 +6,8 @@ SECTION =3D "tpm"
=20
DEPENDS =3D "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
=20
+RDEPENDS:${PN} =3D "libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-=
mssim"
+
SRC_URI =3D "https://github.com/tpm2-software/${BPN}/releases/download/$=
{PV}/${BPN}-${PV}.tar.gz"
=20
SRC_URI[sha256sum] =3D "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed48=
62e96162a8c91ba1"
--=20
2.25.1
--
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com
ed
additional software. Without adding libtss packages to the RDEPENDS attem=
pt to
run with tss2-tcti fails like:
ERROR:tcti:../tpm2-tss-3.0.3/src/tss2-tcti/tcti-swtpm.c:592:
Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
---
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb b/meta-tp=
m/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index dbd324a..cb2e3d8 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -6,6 +6,8 @@ SECTION =3D "tpm"
=20
DEPENDS =3D "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
=20
+RDEPENDS:${PN} =3D "libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-=
mssim"
+
SRC_URI =3D "https://github.com/tpm2-software/${BPN}/releases/download/$=
{PV}/${BPN}-${PV}.tar.gz"
=20
SRC_URI[sha256sum] =3D "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed48=
62e96162a8c91ba1"
--=20
2.25.1
--
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com
On 4/27/22 02:48, Michał Kotyla wrote:
- armin
To use tpm2-tools like tpm2_pcrread on the system image should be installedThe current version of tpm2-tools is 5.2. Was this meant for honister?
additional software. Without adding libtss packages to the RDEPENDS attempt to
run with tss2-tcti fails like:
ERROR:tcti:../tpm2-tss-3.0.3/src/tss2-tcti/tcti-swtpm.c:592:
Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
- armin
---
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index dbd324a..cb2e3d8 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -6,6 +6,8 @@ SECTION = "tpm"
DEPENDS = "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
+RDEPENDS:${PN} = "libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-mssim"
+
SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[sha256sum] = "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed4862e96162a8c91ba1"
Michał Kotyla
On 01.05.2022 19:20, Armin Kuster wrote:
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com
--
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com
Yes. We do not have tested this on kirkstone, so this patch is for honister only now.
On 4/27/22 02:48, Michał Kotyla wrote:To use tpm2-tools like tpm2_pcrread on the system image should be installedThe current version of tpm2-tools is 5.2. Was this meant for honister?
additional software. Without adding libtss packages to the RDEPENDS attempt to
run with tss2-tcti fails like:
ERROR:tcti:../tpm2-tss-3.0.3/src/tss2-tcti/tcti-swtpm.c:592:
Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
- armin
-----
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index dbd324a..cb2e3d8 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -6,6 +6,8 @@ SECTION = "tpm"
DEPENDS = "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
+RDEPENDS:${PN} = "libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-mssim"
+
SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[sha256sum] = "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed4862e96162a8c91ba1"
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com
--
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com