Patchwork [meta-oe,meta-systemd] libpam 1.1.5 bbappend: register PAM session with logind

login
register
mail settings
Submitter Koen Kooi
Date July 16, 2012, 8:02 a.m.
Message ID <1342425772-6146-1-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/32081/
State Accepted
Commit dbb3624147e4cd1fda79e64cbe5333d570a3e500
Headers show

Comments

Koen Kooi - July 16, 2012, 8:02 a.m.
This makes screen/tmux/etc work as intended

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-systemd/recipes-extended/pam/libpam_1.1.5.bbappend |    6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 meta-systemd/recipes-extended/pam/libpam_1.1.5.bbappend

Patch

diff --git a/meta-systemd/recipes-extended/pam/libpam_1.1.5.bbappend b/meta-systemd/recipes-extended/pam/libpam_1.1.5.bbappend
new file mode 100644
index 0000000..7c4bcd8
--- /dev/null
+++ b/meta-systemd/recipes-extended/pam/libpam_1.1.5.bbappend
@@ -0,0 +1,6 @@ 
+PRINC := "${@int(PRINC) + 1}"
+
+# Register with logind to make screen/tmux/etc work
+do_install_append() {
+	echo "session required	pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session
+}