From e696a6258129990d94f935c5e90467c7f1889279 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 4 Feb 2015 16:01:30 +0100 Subject: [PATCH] packaging: Improving support of lastlog MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since january 2015, ssh was complaining that /var/log/lastlog was missing. This is probably because the file /var/log/lastlog that is %ghost in platform/upstream/setup is not created (but faillog is created) during image creation. As this have negative inpact due to error messages, we decide to remove the support of lastlog in ssh in favor of the support of lastlog in pam_lastlog. This is good because management of lastlog is now made in a unique place. Change-Id: I22e31aa3c2f092323b9d692a273e938c1b7f9a85 Signed-off-by: José Bollo --- packaging/openssh.spec | 1 + packaging/sshd.pamd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/openssh.spec b/packaging/openssh.spec index 3c7f6b4..0cf9eca 100644 --- a/packaging/openssh.spec +++ b/packaging/openssh.spec @@ -51,6 +51,7 @@ export LDFLAGS="-pie" --sysconfdir=%{_sysconfdir}/ssh \ --libexecdir=%{_libexecdir}/ssh \ --with-pam \ + --without-lastlog \ --with-privsep-path=%{_localstatedir}/lib/empty \ --with-sandbox=rlimit \ --disable-strip \ diff --git a/packaging/sshd.pamd b/packaging/sshd.pamd index f630cf1..7505e38 100644 --- a/packaging/sshd.pamd +++ b/packaging/sshd.pamd @@ -6,5 +6,5 @@ account include system-auth password include system-auth session required pam_loginuid.so session include system-auth -session optional pam_lastlog.so silent noupdate showfailed +session optional pam_lastlog.so showfailed session required pam_smack.so -- 2.7.4