Package: login
Version: 1:4.1.5.1-1
Severity: normal
Tags: patch

With the attached patch, /etc/pam.d/login will use the new pam_exec
functionality from pam 1.1.8-1 to implement the dynamic motd, rather
than using /run/motd.dynamic from initscripts.  This will allow
initscripts to drop /etc/init.d/motd.

Apart from eliminating one more init script at startup time, this also
means text logins will show the correct hostname when it has been
changed after startup.

- Josh Triplett

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages login depends on:
ii  libc6           2.18-4
ii  libpam-modules  1.1.8-2
ii  libpam-runtime  1.1.8-2
ii  libpam0g        1.1.8-2

login recommends no packages.

login suggests no packages.

-- no debconf information
--- debian/control	(revision 3748)
+++ debian/control	(working copy)
@@ -22,7 +22,7 @@
 
 Package: login
 Architecture: any
-Pre-Depends: ${shlibs:Depends}, ${misc:Depends}, libpam-runtime, libpam-modules
+Pre-Depends: ${shlibs:Depends}, ${misc:Depends}, libpam-runtime, libpam-modules (>= 1.1.8-1)
 Conflicts: gnunet (<< 0.7.0c-2), amavisd-new (<<2.3.3-8), python-4suite (<< 0.99cvs20060405-1), backupninja (<< 0.9.3-5), echolot (<< 2.1.8-4)
 Replaces: manpages-de (<< 0.5-3), manpages-tr (<<1.0.5), manpages-zh (<<1.5.1-1)
 Essential: yes
--- debian/login.pam	(revision 3748)
+++ debian/login.pam	(working copy)
@@ -82,9 +82,7 @@
 
 # Prints the message of the day upon succesful login.
 # (Replaces the `MOTD_FILE' option in login.defs)
-# This includes a dynamically generated part from /run/motd.dynamic
-# and a static (admin-editable) part from /etc/motd.
-session    optional   pam_motd.so  motd=/run/motd.dynamic  noupdate
+session    optional   pam_exec.so type=open_session stdout /bin/uname -snrvm
 session    optional   pam_motd.so
 
 # Prints the status of the user's mailbox upon succesful login

Reply via email to