summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-plasma/kscreenlocker/files/kscreenlocker-fingerprint.pam13
-rw-r--r--kde-plasma/kscreenlocker/files/kscreenlocker-password.pam9
-rw-r--r--kde-plasma/kscreenlocker/files/kscreenlocker-smartcard.pam13
-rw-r--r--kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild6
4 files changed, 39 insertions, 2 deletions
diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-fingerprint.pam b/kde-plasma/kscreenlocker/files/kscreenlocker-fingerprint.pam
new file mode 100644
index 00000000000..38267de65e3
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-fingerprint.pam
@@ -0,0 +1,13 @@
+#%PAM-1.0
+
+auth required pam_shells.so
+auth required pam_nologin.so
+auth required pam_faillock.so preauth
+auth required pam_fprintd.so
+auth required pam_env.so
+
+account include system-local-login
+
+password include system-local-login
+
+session include system-local-login
diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-password.pam b/kde-plasma/kscreenlocker/files/kscreenlocker-password.pam
new file mode 100644
index 00000000000..ce9e84d5884
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-password.pam
@@ -0,0 +1,9 @@
+#%PAM-1.0
+
+auth include system-local-login
+
+account include system-local-login
+
+password include system-local-login
+
+session include system-local-login
diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-smartcard.pam b/kde-plasma/kscreenlocker/files/kscreenlocker-smartcard.pam
new file mode 100644
index 00000000000..f887c782343
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-smartcard.pam
@@ -0,0 +1,13 @@
+#%PAM-1.0
+
+auth required pam_shells.so
+auth required pam_nologin.so
+auth required pam_faillock.so preauth
+auth required pam_pkcs11.so wait_for_card card_only
+auth required pam_env.so
+
+account include system-local-login
+
+password include system-local-login
+
+session include system-local-login
diff --git a/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild b/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
index da6f0f9036f..29c7cf2f72d 100644
--- a/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
+++ b/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
@@ -74,6 +74,8 @@ src_test() {
src_install() {
ecm_src_install
- newpamd "${FILESDIR}/kde.pam" kde
- newpamd "${FILESDIR}/kde-np.pam" kde-np
+ local config
+ for config in kscreenlocker-{fingerprint,password,smartcard} ; do
+ newpamd "${FILESDIR}/${config}.pam" ${config}
+ done
}