Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
kscreenlocker


Commits:
4fcbe0dc by Jin Liu at 2024-03-05T21:00:48+08:00
Fix errors when "fprint" or "pam_pkcs11" is not installed

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.

- - - - -


2 changed files:

- kde-fingerprint.pam
- kde-smartcard.pam


Changes:

=====================================
kde-fingerprint.pam
=====================================
@@ -3,7 +3,7 @@
 auth       required                    pam_shells.so
 auth       requisite                   pam_nologin.so
 auth       requisite                   pam_faillock.so      preauth
-auth       required                    pam_fprintd.so
+-auth      required                    pam_fprintd.so
 auth       optional                    pam_permit.so
 auth       required                    pam_env.so
 


=====================================
kde-smartcard.pam
=====================================
@@ -2,7 +2,7 @@
 
 auth       requisite                   pam_nologin.so
 auth       requisite                   pam_faillock.so      preauth
-auth       required                    pam_pkcs11.so        wait_for_card 
card_only
+-auth      required                    pam_pkcs11.so        wait_for_card 
card_only
 auth       required                    pam_shells.so
 auth       optional                    pam_permit.so
 auth       required                    pam_env.so



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/kscreenlocker/-/commit/4fcbe0dc49e3c8976d7a953f3a47a3e7caf453f2

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/kscreenlocker/-/commit/4fcbe0dc49e3c8976d7a953f3a47a3e7caf453f2
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to