components/openssh/patches/020-deprecate_sunssh_sshd_config_opts.patch
author Ivo Raisr <ivo.raisr@oracle.com>
Mon, 03 Aug 2015 15:31:47 -0700
branchs11-update
changeset 4752 3409fc90e641
parent 4401 85f919ec3274
child 4935 ed3830c87e7b
permissions -rw-r--r--
21509846 problem in UTILITY/OPENSSH
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
#
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     2
# Originally we planned to only deprecate client config (ssh_config) options 
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     3
# and leave it up to system administrators to remove all SunSSH specific
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     4
# server config (sshd_config) options. In internal testing we have discovered,
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     5
# that this would bring too much trouble to the said administrators.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     6
# The probability of these options appearing in existing sshd_config files
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     7
# is higher than initially though, because some of the options have been in
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     8
# default sshd_config file for very long time. Also the consequence of
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     9
# unknown server option is harsh - ssh service goes to maintenance mode
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    10
# possible rendering the instance not accessible. For this reason we will
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    11
# deprecate SunSSH specific sshd_config options too.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    12
#
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    13
# This is a Solaris specific change to ease the transition and will not be
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    14
# offered upstream.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    15
#
4401
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    16
--- orig/servconf.c	Mon Jun  1 15:37:53 2015
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    17
+++ new/servconf.c	Mon Jun  1 15:43:35 2015
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    18
@@ -1,4 +1,3 @@
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    19
-
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    20
 /* $OpenBSD: servconf.c,v 1.248 2013/12/06 13:39:49 markus Exp $ */
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    21
 /*
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    22
  * Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    23
@@ -528,6 +527,29 @@
3946
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    24
         { "pamserviceprefix", sPAMServicePrefix, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    25
         { "pamservicename", sPAMServiceName, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    26
 #endif
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    27
+#ifdef DEPRECATE_SUNSSH_OPT
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    28
+	/*
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    29
+	 * On Solaris, to make the transition from SunSSH to OpenSSH as smooth
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    30
+	 * as possible, we will deprecate SunSSH-only options in OpenSSH.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    31
+	 * Therefore on a system having one of the following options in
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    32
+	 * /etc/ssh/sshd_config, change to OpenSSH will not result in service
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    33
+	 * network/ssh going to maintenance. Instead, a warning will be printed
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    34
+	 * to /var/svc/log/network-ssh:default.log. Note that
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    35
+	 * this is an interim enhancement to OpenSSH to make the transition
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    36
+	 * smoother.  If a deprecated SunSSH-only option is migrated to OpenSSH
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    37
+	 * later, then it will be changed from deprecated to supported.
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    38
+	 */
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    39
+	{ "maxauthtrieslog", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    40
+	{ "lookupclienthostnames", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    41
+	{ "useopensslengine", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    42
+	{ "preuserauthhook", sDeprecated, SSHCFG_ALL},
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    43
+	{ "kmfpolicydatabase", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    44
+	{ "kmfpolicyname", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    45
+	{ "trustedanchorkeystore", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    46
+	{ "useunsupportedsshv1", sDeprecated, SSHCFG_GLOBAL },
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    47
+	{ "usefips140", sDeprecated, SSHCFG_ALL},
4401
85f919ec3274 21181714 The gssapikeyexchange option should be deprecated in server also
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 3946
diff changeset
    48
+	{ "gssapikeyexchange", sDeprecated, SSHCFG_ALL},
3946
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    49
+#endif
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    50
 	{ NULL, sBadOption, 0 }
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    51
 };
b1e0e68de63b PSARC 2012/335 OpenSSH migration
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    52