From 95c8918f893bb974db765eb88b62a236573c1b73 Mon Sep 17 00:00:00 2001 From: "Luis Gustavo S. Barreto" Date: Tue, 12 Apr 2016 13:20:42 +0000 Subject: [PATCH] kscreenlocker: fix can't unlock screen Kcheckpass needs a PAM configuration file to communicate with PAM to verify the password to unlock the screen. Signed-off-by: Luis Gustavo S. Barreto --- .../plasma/untier/kscreenlocker/files/kde.pam | 14 ++++++++++++++ .../plasma/untier/kscreenlocker/kscreenlocker.bb | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 recipes-kde/plasma/untier/kscreenlocker/files/kde.pam diff --git a/recipes-kde/plasma/untier/kscreenlocker/files/kde.pam b/recipes-kde/plasma/untier/kscreenlocker/files/kde.pam new file mode 100644 index 00000000..b0304eb2 --- /dev/null +++ b/recipes-kde/plasma/untier/kscreenlocker/files/kde.pam @@ -0,0 +1,14 @@ +#%PAM-1.0 + +auth requisite pam_nologin.so +auth required pam_env.so +auth required pam_unix.so nullok + +account required pam_unix.so + +session required pam_limits.so +session required pam_unix.so +-session optional pam_systemd.so +-session optional pam_kwallet5.so + +password required pam_unix.so diff --git a/recipes-kde/plasma/untier/kscreenlocker/kscreenlocker.bb b/recipes-kde/plasma/untier/kscreenlocker/kscreenlocker.bb index 0879a5f4..2324ecfd 100644 --- a/recipes-kde/plasma/untier/kscreenlocker/kscreenlocker.bb +++ b/recipes-kde/plasma/untier/kscreenlocker/kscreenlocker.bb @@ -26,12 +26,20 @@ PV = "${PLASMA_VERSION}" SRC_URI[md5sum] = "173888c9ce09eb9979c90735b0664d65" SRC_URI[sha256sum] = "3ae7c40c4394c32eafe560694b58aafa841f613451a9543d7fbf5d68e79e4bb2" +SRC_URI += "file://kde.pam" + +do_install_append() { + install -d ${D}${sysconfdir}/pam.d + install -m 644 ${WORKDIR}/kde.pam ${D}${sysconfdir}/pam.d/kde +} + FILES_${PN} += " \ ${datadir}/dbus-1 \ ${datadir}/kconf_update \ ${datadir}/k*5 \ ${datadir}/plasma \ ${datadir}/ksmserver \ + ${sysconfdir} \ ${OE_QMAKE_PATH_PLUGINS} \ "