packaging: Improving support of lastlog 39/34939/2 accepted/tizen_3.0.2014.q4_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/3.0.2014.q4/common/20150212.144719 accepted/tizen/common/20150212.145052 accepted/tizen/ivi/20160218.025303 accepted/tizen/mobile/20150224.002816 accepted/tizen/tv/20150324.014610 accepted/tizen/wearable/20150227.064225 submit/tizen_3.0.2014.q4_common/20150212.144009 submit/tizen_common/20150212.143937 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000006 submit/tizen_mobile/20150223.000001 submit/tizen_tv/20150320.000002 submit/tizen_tv/20150323.050640 submit/tizen_wearable/20150227.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Wed, 4 Feb 2015 15:01:30 +0000 (16:01 +0100)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Thu, 5 Feb 2015 08:36:09 +0000 (09:36 +0100)
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 <jose.bollo@open.eurogiciel.org>
packaging/openssh.spec
packaging/sshd.pamd

index 3c7f6b4..0cf9eca 100644 (file)
@@ -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 \
index f630cf1..7505e38 100644 (file)
@@ -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