tpm2-tools: drop dependency on tpm2-abrmd
PATCH v3 1/1 tpm2-tools: drop dependency on tpm2-abrmd
tpm2-tools is commonly used with the resource manager, tpm2-abrmd - But it CAN be used without, E.G. by setting the TPM2TOOLS_TCTI_NAME environment variable to communicate directly with the kernel driver:
export TPM2TOOLS_TCTI_NAME=device
Either directly with the TPM device (/dev/tpmN) or through the in-kernel resource manager provided by Linux kernel since 4.12 (/dev/tpmrmN)
For some use cases (E.G. initramfs) it makes sense to use tpm2-tools without abrmd, so remove the tpm2-abrmd select, and instead a note in the help text that it may be needed.
---
Changes since v2:
- Drop the imply and instead add a comment as suggested by Yann and Arnout
package/tpm2-tools/Config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/tpm2-tools/Config.in +5 -1
@@ -8,7 +8,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_OPENSSL - select BR2_PACKAGE_TPM2_ABRMD # run-time select BR2_PACKAGE_TPM2_TSS help TPM (Trusted Platform Module) 2.0 CLI tools based on system
@@ -17,6 +16,11 @@ config BR2_PACKAGE_TPM2_TOOLS and manage non-volatile storage through a TPM2.0 HW implementation. + Notice: An in-kernel resource manager is provided by the + Linux kernel since 4.12. Depending on use cases and kernel + version, the user space resource manager provided by + tpm2-abrmd may be needed. + https://github.com/tpm2-software/tpm2-tools comment "tpm2-tools needs a toolchain w/ dynamic library, wchar, threads"
Signature · 1 line
2.11.0
PATCH v3 1/1 tpm2-tools: drop dependency on tpm2-abrmd
Peter, All,
On 2019-01-25 16:03 +0100, Peter Korsgaard spake thusly:
Quoted 6 lines
tpm2-tools is commonly used with the resource manager, tpm2-abrmd - But it CAN be used without, E.G. by setting the
TPM2TOOLS_TCTI_NAMEenvironment variable to communicate directly with the kernel driver:export TPM2TOOLS_TCTI_NAME=device
Quoted 8 lines
Either directly with the TPM device (
/dev/tpmN) or through the in-kernel resource manager provided by Linux kernel since 4.12 (/dev/tpmrmN)For some use cases (E.G. initramfs) it makes sense to use tpm2-tools without abrmd, so remove the tpm2-abrmd select, and instead a note in the help text that it may be needed.
Signed-off-by Peter Korsgaard <[email protected]>
Thank you. :-)
Regards,
Yann E. MORIN.
Quoted 34 lines
---
Changes since v2:
- Drop the imply and instead add a comment as suggested by Yann and Arnoutpackage/tpm2-tools/Config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)package/tpm2-tools/Config.in +5
-1@@ -8,7 +8,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_OPENSSL - select BR2_PACKAGE_TPM2_ABRMD # run-time select BR2_PACKAGE_TPM2_TSS help TPM (Trusted Platform Module) 2.0 CLI tools based on system@@ -17,6 +16,11 @@ config BR2_PACKAGE_TPM2_TOOLS and manage non-volatile storage through a TPM2.0 HW implementation. + Notice: An in-kernel resource manager is provided by the + Linux kernel since 4.12. Depending on use cases and kernel + version, the user space resource manager provided by + tpm2-abrmd may be needed. + https://github.com/tpm2-software/tpm2-tools comment "tpm2-tools needs a toolchain w/ dynamic library, wchar, threads"Signature · 1 line
2.11.0
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v3 1/1 tpm2-tools: drop dependency on tpm2-abrmd
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Peter, All,
On 2019-01-25 16:03 +0100, Peter Korsgaard spake thusly:Quoted 13 lines
tpm2-tools is commonly used with the resource manager, tpm2-abrmd - But it CAN be used without, E.G. by setting the
TPM2TOOLS_TCTI_NAMEenvironment variable to communicate directly with the kernel driver:export TPM2TOOLS_TCTI_NAME=device
Either directly with the TPM device (
/dev/tpmN) or through the in-kernel resource manager provided by Linux kernel since 4.12 (/dev/tpmrmN)For some use cases (E.G. initramfs) it makes sense to use tpm2-tools without abrmd, so remove the tpm2-abrmd select, and instead a note in the help text that it may be needed.
Quoted 5 lines
Quoted 1 line
Signed-off-by Peter Korsgaard <[email protected]>Acked-by "Yann E. MORIN" <[email protected]>Thank you. :-)
You're welcome ;) Thanks for your review.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 1/1 tpm2-tools: drop dependency on tpm2-abrmd
In reply to Peter KorsgaardQuoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
tpm2-tools is commonly used with the resource manager, tpm2-abrmd - But it CAN be used without, E.G. by setting the
TPM2TOOLS_TCTI_NAMEenvironment variable to communicate directly with the kernel driver:export TPM2TOOLS_TCTI_NAME=device
Either directly with the TPM device (
/dev/tpmN) or through the in-kernel resource manager provided by Linux kernel since 4.12 (/dev/tpmrmN)
Quoted 8 lines
For some use cases (E.G. initramfs) it makes sense to use tpm2-tools without abrmd, so remove the tpm2-abrmd select, and instead a note in the help text that it may be needed.
Signed-off-by Peter Korsgaard <[email protected]>---
Changes since v2:
- Drop the imply and instead add a comment as suggested by Yann and Arnout
Committed to 2018.11.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard