diff options
author | Luca Boccassi <bluca@debian.org> | 2024-04-03 13:07:43 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-04-03 15:23:04 +0200 |
commit | dd6c0df65cd9c0c19cbd655772824c90125347b4 (patch) | |
tree | 1bb8cf91699c57d703ed6d84d34606e72d6de762 /src/shared/tpm2-util.c | |
parent | bpf: actually check for errors when loading symbols (diff) | |
download | systemd-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.c | 2 |
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), |