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
17 lines
515 B
C
17 lines
515 B
C
--- src/tss2-tcti/tctildr-dl.c.orig 2025-02-22 22:43:21 UTC
|
|
+++ src/tss2-tcti/tctildr-dl.c
|
|
@@ -37,11 +37,13 @@ struct {
|
|
.file = "libtss2-tcti-tabrmd.so.0",
|
|
.description = "Access libtss2-tcti-tabrmd.so",
|
|
},
|
|
+#if !defined(__FreeBSD__)
|
|
{
|
|
.file = "libtss2-tcti-device.so.0",
|
|
.conf = "/dev/tpmrm0",
|
|
.description = "Access libtss2-tcti-device.so.0 with /dev/tpmrm0",
|
|
},
|
|
+#endif
|
|
{
|
|
.file = "libtss2-tcti-device.so.0",
|
|
.conf = "/dev/tpm0",
|