FreeBSD does not have an in-kernel Resource Manager for TPM, the tools must access the /dev/tpm0 device, either directly or through an userland RM like tpm2-abrmd. The default behavior of the original code is to try the in kernel RM on /dev/tpmrm0 as first choice, this causes warnings and errors and forces the user to override the behavior with options or environment variables. This patch removes the attempt to use /dev/tpmrm0 so that the programs "just work" using the tpm0 device or through tpm2-abrmd. PR: 286218 Approved by: maintainer Pull Request: https://github.com/freebsd/freebsd-ports/pull/392
12 lines
573 B
C
12 lines
573 B
C
--- src/tss2-esys/esys_context.c.orig 2025-02-22 22:43:21 UTC
|
|
+++ src/tss2-esys/esys_context.c
|
|
@@ -26,7 +26,7 @@
|
|
* If not specified, load a TCTI in this order:
|
|
* Library libtss2-tcti-default.so (link to the preferred TCTI)
|
|
* Library libtss2-tcti-tabrmd.so (tabrmd)
|
|
- * Device /dev/tpmrm0 (kernel resident resource manager)
|
|
+ * Device /dev/tpmrm0 (kernel resident resource manager, SKIPPED on FreeBSD)
|
|
* Device /dev/tpm0 (hardware TPM)
|
|
* TCP socket localhost:2321 (TPM simulator)
|
|
* @param esys_context [out] The ESYS_CONTEXT.
|