From 623bdc2dbdf6462cdd54dae6256b52b1a25a2b88 Mon Sep 17 00:00:00 2001 From: Nathan Nye Date: Sun, 10 Oct 2021 22:50:24 +0000 Subject: [PATCH] Restore case for PAM/SSH (x86_64) --- src/library/platforms/linux/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/library/platforms/linux/mod.rs b/src/library/platforms/linux/mod.rs index fafd418..c7cbbf5 100644 --- a/src/library/platforms/linux/mod.rs +++ b/src/library/platforms/linux/mod.rs @@ -271,7 +271,8 @@ unsafe extern "C" fn la_symbind64(sym: *const libc::Elf64_Sym, _ndx: libc::c_uin return (*(sym)).st_value as usize; } // FIXME: Hacks various Python/rsyslog/dpkg/libcrypto issue(s): (python dlopen/dlopen/dlopen/openssl_fopen used by python/rsyslog/curl respectively) - if (calling_library_basename_str == "libcrypto.so.1.1") && (symbol_str == "fopen64") { + if ((calling_library_basename_str == "libpam.so.0") && (symbol_str == "dlopen")) || + ((calling_library_basename_str == "libcrypto.so.1.1") && (symbol_str == "fopen64")) { return (*(sym)).st_value as usize; } if symbol_str == "dlopen" {