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 <gustavo@ossystems.com.br>
This commit is contained in:
Luis Gustavo S. Barreto
2016-04-12 13:20:42 +00:00
parent 695d795746
commit 95c8918f89
2 changed files with 22 additions and 0 deletions

View File

@@ -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

View File

@@ -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} \
"