summaryrefslogtreecommitdiffstats
path: root/src/shared/tpm2-util.c
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-04-03 13:07:43 +0200
committerLuca Boccassi <bluca@debian.org>2024-04-03 15:23:04 +0200
commitdd6c0df65cd9c0c19cbd655772824c90125347b4 (patch)
tree1bb8cf91699c57d703ed6d84d34606e72d6de762 /src/shared/tpm2-util.c
parentbpf: actually check for errors when loading symbols (diff)
downloadsystemd-dd6c0df65cd9c0c19cbd655772824c90125347b4.tar.xz
systemd-dd6c0df65cd9c0c19cbd655772824c90125347b4.zip
dlopen: log debug message when a library is dlopened
Useful to track what is being used and when
Diffstat (limited to 'src/shared/tpm2-util.c')
-rw-r--r--src/shared/tpm2-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c
index 203cf5fb3a..42975cdb97 100644
--- a/src/shared/tpm2-util.c
+++ b/src/shared/tpm2-util.c
@@ -668,6 +668,8 @@ int tpm2_context_new(const char *device, Tpm2Context **ret_context) {
if (!context->tcti_dl)
return log_debug_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "Failed to load %s: %s", fn, dlerror());
+ log_debug("Loaded '%s' via dlopen()", fn);
+
func = dlsym(context->tcti_dl, TSS2_TCTI_INFO_SYMBOL);
if (!func)
return log_debug_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE),