dlopen: log debug message when a library is dlopened

Useful to track what is being used and when
This commit is contained in:
Luca Boccassi
2024-04-03 14:23:04 +01:00
parent e5d4adb173
commit dd6c0df65c
5 changed files with 14 additions and 1 deletions
+2
View File
@@ -1455,6 +1455,8 @@ int userdb_block_nss_systemd(int b) {
return 0;
}
log_debug("Loaded '%s' via dlopen()", LIBDIR "/libnss_systemd.so.2");
call = dlsym(dl, "_nss_systemd_block");
if (!call)
/* If the file is installed but lacks the symbol we expect, things are weird, let's complain */