]> code.ossystems Code Review - openembedded-core.git/commit
openssh: enable PAM at runtime based on DISTRO_FEATURES
authorKoen Kooi <koen@dominion.thruhere.net>
Thu, 20 Feb 2014 07:07:22 +0000 (08:07 +0100)
committerSaul Wold <sgw@linux.intel.com>
Fri, 21 Feb 2014 04:06:22 +0000 (20:06 -0800)
commit08c523daec0f5161803d2a6704402490c18ff6ca
treec9841a9fa19a3f5f54fa61b1fb18c7f350f4d8c8
parenta0353102184892f09d3f97f018e457a4684550ea
openssh: enable PAM at runtime based on DISTRO_FEATURES

Everything is setup to use PAM except for the server config. If 'pam' is
in DISTRO_FEATURES the configs will be changed to enable it.

Syslog will now show:

Feb 19 09:28:36 beast sshd[2980]: pam_unix(sshd:session): session opened for user koen by (uid=0)

And more importantly:

koen@beast:~$ loginctl
   SESSION        UID USER             SEAT
        c1       1000 koen             seat0
        c3       1000 koen             seat0
       c13       1000 koen

3 sessions listed.

Systemd now registers the session properly so it won't kill things like 'screen'
and 'tmux' when disconnecting the ssh session.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/openssh/openssh_6.4p1.bb