Skip to content

Fix errors when "fprint" or "pam_pkcs11" is not installed

Jin Liu requested to merge genericity/kscreenlocker:fix-lib-missing-warning into main

When they are missing, the lockscreen produces the following errors in the journal:

kscreenlocker_greet[9492]: PAM unable to dlopen(/usr/lib/security/pam_fprintd.so) kscreenlocker_greet[9492]: PAM adding faulty module: /usr/lib/security/pam_fprintd.so kscreenlocker_greet[9492]: PAM unable to dlopen(/usr/lib/security/pam_pkcs11.so) kscreenlocker_greet[9492]: PAM adding faulty module: /usr/lib/security/pam_pkcs11.so

Prefixing the line with "-" makes PAM return "PAM_MODULE_UNKNOWN" in this case, and then "kscreenlocker" will silently ignore these auth methods. When these libs are present, the behavior is unchanged.

Merge request reports

Loading