components/openssh/patches/003-last_login.patch
author Jan Parcel <jan.parcel@oracle.com>
Wed, 16 Nov 2016 12:17:49 -0800
branchs11u3-sru
changeset 7320 edeb951aa980
parent 6076 0d5715bee554
child 7946 165bf092aa9c
permissions -rw-r--r--
24525860 upgrade OpenSSH to 7.3p1 24320031 problem in UTILITY/OPENSSH 24461706 problem in UTILITY/OPENSSH 24752716 Eliminate hard-to-maintain manpages section-number patch in openssh 11.3SRU 15366793 sshd calls pam_authenticate() for none method if PermitEmptyPasswords=yes 24597931 PAM_BUGFIX by-passes fake password for timing attack avoidance 23223069 problem in UTILITY/OPENSSH 24923674 problem in UTILITY/OPENSSH 23577308 OpenSSH Makefile: -DWITHOUT_ED25519 left behind 23140756 openssh passes bad option to configure (--with-tcp-wrappers) 24301902 Log connections dropped when exceeding MaxStartups
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3946
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     1
# The man page change here is Solaris-specific and thus is not being
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     2
# contributed back to the upstream community.  The servconf.c change
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     3
# was developed in-house and has been submitted upstream to OpenSSH for
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     4
# their consideration:
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     5
# https://bugzilla.mindrot.org/show_bug.cgi?id=2278
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     6
#
6076
0d5715bee554 PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Zdenek Kotala <Zdenek.Kotala@oracle.com>
parents: 5324
diff changeset
     7
# Update - accepted upstream:
0d5715bee554 PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Zdenek Kotala <Zdenek.Kotala@oracle.com>
parents: 5324
diff changeset
     8
# https://github.com/openssh/openssh-portable/commit/ac908c1eeacccfa
0d5715bee554 PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates
Zdenek Kotala <Zdenek.Kotala@oracle.com>
parents: 5324
diff changeset
     9
#
3946
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    10
# OpenSSH normally updates lastlog when users login and reads lastlog to
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    11
# determine the last login time of the user however on Solaris the
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    12
# pam_unix_session(5) module handles both of these tasks so we compile
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    13
# OpenSSH with --disable-lastlog to disable all lastlog references.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    14
# This means the sshd_config option of PrintLastLog is now ignored and
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    15
# can't be changed so we update sshd's configuration parsing to flag
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    16
# this as unsupported and update the man page here.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    17
#
5324
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    18
diff -pur old/sshd_config.5 new/sshd_config.5
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    19
--- old/sshd_config.5
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    20
+++ new/sshd_config.5
7320
edeb951aa980 24525860 upgrade OpenSSH to 7.3p1
Jan Parcel <jan.parcel@oracle.com>
parents: 6076
diff changeset
    21
@@ -1300,8 +1300,8 @@ Specifies whether
5324
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    22
 .Xr sshd 8
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    23
 should print the date and time of the last user login when a user logs
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    24
 in interactively.
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    25
-The default is
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    26
-.Dq yes .
7320
edeb951aa980 24525860 upgrade OpenSSH to 7.3p1
Jan Parcel <jan.parcel@oracle.com>
parents: 6076
diff changeset
    27
+On Solaris this option is always ignored since pam_unix_session(7)
5324
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    28
+reports the last login time.
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    29
 .It Cm PrintMotd
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    30
 Specifies whether
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    31
 .Xr sshd 8
7320
edeb951aa980 24525860 upgrade OpenSSH to 7.3p1
Jan Parcel <jan.parcel@oracle.com>
parents: 6076
diff changeset
    32
@@ -1721,7 +1721,8 @@ This file should be writable by root onl
5324
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    33
 (though not necessary) that it be world-readable.
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    34
 .El
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    35
 .Sh SEE ALSO
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    36
-.Xr sshd 8
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    37
+.Xr sshd 8 ,
7320
edeb951aa980 24525860 upgrade OpenSSH to 7.3p1
Jan Parcel <jan.parcel@oracle.com>
parents: 6076
diff changeset
    38
+.Xr pam_unix_session 7
5324
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    39
 .Sh AUTHORS
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    40
 OpenSSH is a derivative of the original and free
5683175b6e99 PSARC/2015/395 OpenSSH 7.1p1
Jan Parcel <jan.parcel@oracle.com>
parents: 3946
diff changeset
    41
 ssh 1.2.12 release by Tatu Ylonen.