dlopen(pam)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I'll write a sample code to show my problem:

let's have

// works fine
handle = dlopen("libpam.so.0", RTLD_LAZY | RTLD_GLOBAL);

// works fine
pam_start = dlsym(handle, "pam_start");

// returns success, but logs a message as follows
pam_start(service, user, ...);

log:
Nov 3 17:17:19 osvetlik auth_test_pam: PAM unable to dlopen(/lib/security/pam_securetty.so)
Nov 3 17:17:19 osvetlik auth_test_pam: PAM [dlerror: /lib/security/pam_securetty.so: undefined symbol: pam_get_item]
Nov 3 17:17:19 osvetlik auth_test_pam: PAM adding faulty module: /lib/security/pam_securetty.so
Nov 3 17:17:19 osvetlik auth_test_pam: PAM unable to dlopen(/lib/security/pam_stack.so)
Nov 3 17:17:19 osvetlik auth_test_pam: PAM [dlerror: /lib/security/pam_stack.so: undefined symbol: _pam_make_env]
Nov 3 17:17:19 osvetlik auth_test_pam: PAM adding faulty module: /lib/security/pam_stack.so
Nov 3 17:17:19 osvetlik auth_test_pam: PAM unable to dlopen(/lib/security/pam_nologin.so)
Nov 3 17:17:19 osvetlik auth_test_pam: PAM [dlerror: /lib/security/pam_nologin.so: undefined symbol: pam_get_item]
Nov 3 17:17:19 osvetlik auth_test_pam: PAM adding faulty module: /lib/security/pam_nologin.so
Nov 3 17:17:19 osvetlik auth_test_pam: PAM unable to dlopen(/lib/security/pam_console.so)
Nov 3 17:17:19 osvetlik auth_test_pam: PAM [dlerror: /lib/security/pam_console.so: undefined symbol: pam_get_item]
Nov 3 17:17:19 osvetlik auth_test_pam: PAM adding faulty module: /lib/security/pam_console.so



It used to work in the past.


Does anybody know, what's wrong?

With regards,

Ondrej Svetlik

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux