diff --git a/openssh-8.4p1-pam_motd.patch b/openssh-8.4p1-pam_motd.patch new file mode 100644 index 0000000..1bb9969 --- /dev/null +++ b/openssh-8.4p1-pam_motd.patch @@ -0,0 +1,19 @@ +Gemeinsame Unterverzeichnisse: openssh-8.4p1.orig/contrib und openssh-8.4p1/contrib. +Gemeinsame Unterverzeichnisse: openssh-8.4p1.orig/.github und openssh-8.4p1/.github. +Gemeinsame Unterverzeichnisse: openssh-8.4p1.orig/m4 und openssh-8.4p1/m4. +Gemeinsame Unterverzeichnisse: openssh-8.4p1.orig/openbsd-compat und openssh-8.4p1/openbsd-compat. +Gemeinsame Unterverzeichnisse: openssh-8.4p1.orig/regress und openssh-8.4p1/regress. +diff -u openssh-8.4p1.orig/sshd_config openssh-8.4p1/sshd_config +--- openssh-8.4p1.orig/sshd_config 2020-09-27 09:25:01.000000000 +0200 ++++ openssh-8.4p1/sshd_config 2021-05-18 19:15:39.190701511 +0200 +@@ -88,8 +88,8 @@ + #X11DisplayOffset 10 + #X11UseLocalhost yes + #PermitTTY yes +-#PrintMotd yes +-#PrintLastLog yes ++PrintMotd no ++PrintLastLog no + #TCPKeepAlive yes + #PermitUserEnvironment no + #Compression delayed diff --git a/openssh.changes b/openssh.changes index e970f28..e0b50c9 100644 --- a/openssh.changes +++ b/openssh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 18 17:16:33 UTC 2021 - Thorsten Kukuk + +- Use pam_motd to unify motd message output [bsc#1185897] + (openssh-8.4p1-pam_motd.patch) + ------------------------------------------------------------------- Thu Apr 22 12:02:55 UTC 2021 - Hans Petter Jansson diff --git a/openssh.spec b/openssh.spec index 4fce50c..c600d0f 100644 --- a/openssh.spec +++ b/openssh.spec @@ -109,6 +109,7 @@ Patch44: openssh-fix-ssh-copy-id.patch Patch45: openssh-8.4p1-ssh_config_d.patch Patch46: openssh-whitelist-syscalls.patch Patch47: openssh-8.4p1-vendordir.patch +Patch48: openssh-8.4p1-pam_motd.patch BuildRequires: audit-devel BuildRequires: automake BuildRequires: groff diff --git a/sshd.pamd b/sshd.pamd index cb4d696..5646361 100644 --- a/sshd.pamd +++ b/sshd.pamd @@ -6,5 +6,7 @@ account include common-account password include common-password session required pam_loginuid.so session include common-session -session optional pam_lastlog.so silent noupdate showfailed session optional pam_keyinit.so force revoke +session optional pam_lastlog.so showfailed +session optional pam_motd.so +