Skip to content

Commit

Permalink
Restore case for PAM/SSH (x86_64)
Browse files Browse the repository at this point in the history
  • Loading branch information
noproto committed Oct 10, 2021
1 parent 6989047 commit 623bdc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/platforms/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 623bdc2

Please sign in to comment.