forked from omniti-labs/omnios-build
-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3428 from citrus-it/pkgopensshr46
openssh - update from 9.3p2 to 9.6p1 (r151046)
- Loading branch information
Showing
25 changed files
with
144 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ From: oracle <[email protected]> | |
Date: Mon, 3 Aug 2015 14:34:41 -0700 | ||
Subject: [PATCH 03/34] lastlogin | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sshd_config.5 a/sshd_config.5 | ||
diff -wpruN '--exclude=*.orig' a~/sshd_config.5 a/sshd_config.5 | ||
--- a~/sshd_config.5 1970-01-01 00:00:00 | ||
+++ a/sshd_config.5 1970-01-01 00:00:00 | ||
@@ -1568,8 +1568,8 @@ Specifies whether | ||
|
@@ -17,7 +17,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/sshd_config.5 a/sshd_config.5 | |
.It Cm PrintMotd | ||
Specifies whether | ||
.Xr sshd 8 | ||
@@ -2074,7 +2074,8 @@ This file should be writable by root onl | ||
@@ -2078,7 +2078,8 @@ This file should be writable by root onl | ||
.El | ||
.Sh SEE ALSO | ||
.Xr sftp-server 8 , | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ From: oracle <[email protected]> | |
Date: Mon, 3 Aug 2015 14:35:34 -0700 | ||
Subject: [PATCH 06/34] GSS store creds for Solaris | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/configure.ac a/configure.ac | ||
diff -wpruN '--exclude=*.orig' a~/configure.ac a/configure.ac | ||
--- a~/configure.ac 1970-01-01 00:00:00 | ||
+++ a/configure.ac 1970-01-01 00:00:00 | ||
@@ -1151,6 +1151,9 @@ mips-sony-bsd|mips-sony-newsos4) | ||
@@ -1161,6 +1161,9 @@ mips-sony-bsd|mips-sony-newsos4) | ||
], | ||
) | ||
TEST_SHELL=$SHELL # let configure find us a capable shell | ||
|
@@ -16,7 +16,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/configure.ac a/configure.ac | |
;; | ||
*-*-sunos4*) | ||
CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/gss-serv-krb5.c a/gss-serv-krb5.c | ||
diff -wpruN '--exclude=*.orig' a~/gss-serv-krb5.c a/gss-serv-krb5.c | ||
--- a~/gss-serv-krb5.c 1970-01-01 00:00:00 | ||
+++ a/gss-serv-krb5.c 1970-01-01 00:00:00 | ||
@@ -109,7 +109,7 @@ ssh_gssapi_krb5_userok(ssh_gssapi_client | ||
|
@@ -48,7 +48,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/gss-serv-krb5.c a/gss-serv-kr | |
}; | ||
|
||
#endif /* KRB5 */ | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/gss-serv.c a/gss-serv.c | ||
diff -wpruN '--exclude=*.orig' a~/gss-serv.c a/gss-serv.c | ||
--- a~/gss-serv.c 1970-01-01 00:00:00 | ||
+++ a/gss-serv.c 1970-01-01 00:00:00 | ||
@@ -319,22 +319,66 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_g | ||
|
@@ -118,10 +118,10 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/gss-serv.c a/gss-serv.c | |
} | ||
|
||
/* This allows GSSAPI methods to do things to the child's environment based | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/servconf.c a/servconf.c | ||
diff -wpruN '--exclude=*.orig' a~/servconf.c a/servconf.c | ||
--- a~/servconf.c 1970-01-01 00:00:00 | ||
+++ a/servconf.c 1970-01-01 00:00:00 | ||
@@ -605,7 +605,11 @@ static struct { | ||
@@ -604,7 +604,11 @@ static struct { | ||
{ "afstokenpassing", sUnsupported, SSHCFG_GLOBAL }, | ||
#ifdef GSSAPI | ||
{ "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, | ||
|
@@ -133,7 +133,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/servconf.c a/servconf.c | |
{ "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL }, | ||
#else | ||
{ "gssapiauthentication", sUnsupported, SSHCFG_ALL }, | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sshd.c a/sshd.c | ||
diff -wpruN '--exclude=*.orig' a~/sshd.c a/sshd.c | ||
--- a~/sshd.c 1970-01-01 00:00:00 | ||
+++ a/sshd.c 1970-01-01 00:00:00 | ||
@@ -2291,9 +2291,23 @@ main(int ac, char **av) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ From: oracle <[email protected]> | |
Date: Mon, 3 Aug 2015 14:35:43 -0700 | ||
Subject: [PATCH 07/34] DTrace support for SFTP | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/Makefile.in a/Makefile.in | ||
diff -wpruN '--exclude=*.orig' a~/Makefile.in a/Makefile.in | ||
--- a~/Makefile.in 1970-01-01 00:00:00 | ||
+++ a/Makefile.in 1970-01-01 00:00:00 | ||
@@ -103,6 +103,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \ | ||
|
@@ -65,7 +65,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/Makefile.in a/Makefile.in | |
|
||
install-sysconf: | ||
$(MKDIR_P) $(DESTDIR)$(sysconfdir) | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp-server.c a/sftp-server.c | ||
diff -wpruN '--exclude=*.orig' a~/sftp-server.c a/sftp-server.c | ||
--- a~/sftp-server.c 1970-01-01 00:00:00 | ||
+++ a/sftp-server.c 1970-01-01 00:00:00 | ||
@@ -56,6 +56,9 @@ | ||
|
@@ -159,7 +159,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp-server.c a/sftp-server.c | |
if (ret == -1) { | ||
status = errno_to_portable(errno); | ||
error_f("write \"%.100s\": %s", | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp64.d a/sftp64.d | ||
diff -wpruN '--exclude=*.orig' a~/sftp64.d a/sftp64.d | ||
--- a~/sftp64.d 1970-01-01 00:00:00 | ||
+++ a/sftp64.d 1970-01-01 00:00:00 | ||
@@ -0,0 +1,56 @@ | ||
|
@@ -219,7 +219,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp64.d a/sftp64.d | |
+ sfi_pathname = copyinstr((uintptr_t)*(uint64_t *)copyin( | ||
+ (uintptr_t)&s->sftp_pathname, sizeof (uint64_t))); | ||
+}; | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp_provider.d a/sftp_provider.d | ||
diff -wpruN '--exclude=*.orig' a~/sftp_provider.d a/sftp_provider.d | ||
--- a~/sftp_provider.d 1970-01-01 00:00:00 | ||
+++ a/sftp_provider.d 1970-01-01 00:00:00 | ||
@@ -0,0 +1,61 @@ | ||
|
@@ -284,7 +284,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp_provider.d a/sftp_provid | |
+#pragma D attributes Private/Private/Unknown provider sftp function | ||
+#pragma D attributes Private/Private/ISA provider sftp name | ||
+#pragma D attributes Evolving/Evolving/ISA provider sftp args | ||
diff -wpruN --no-dereference '--exclude=*.orig' a~/sftp_provider_impl.h a/sftp_provider_impl.h | ||
diff -wpruN '--exclude=*.orig' a~/sftp_provider_impl.h a/sftp_provider_impl.h | ||
--- a~/sftp_provider_impl.h 1970-01-01 00:00:00 | ||
+++ a/sftp_provider_impl.h 1970-01-01 00:00:00 | ||
@@ -0,0 +1,73 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ From: oracle <[email protected]> | |
Date: Mon, 3 Aug 2015 14:36:13 -0700 | ||
Subject: [PATCH 09/34] PAM conversation fix | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | ||
diff -wpruN '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | ||
--- a~/auth-pam.c 1970-01-01 00:00:00 | ||
+++ a/auth-pam.c 1970-01-01 00:00:00 | ||
@@ -1279,11 +1279,13 @@ free_pam_environment(char **env) | ||
@@ -1281,11 +1281,13 @@ free_pam_environment(char **env) | ||
free(env); | ||
} | ||
|
||
|
@@ -20,7 +20,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | |
static int | ||
sshpam_passwd_conv(int n, sshpam_const struct pam_message **msg, | ||
struct pam_response **resp, void *data) | ||
@@ -1305,12 +1307,24 @@ sshpam_passwd_conv(int n, sshpam_const s | ||
@@ -1307,12 +1309,24 @@ sshpam_passwd_conv(int n, sshpam_const s | ||
for (i = 0; i < n; ++i) { | ||
switch (PAM_MSG_MEMBER(msg, i, msg_style)) { | ||
case PAM_PROMPT_ECHO_OFF: | ||
|
@@ -45,7 +45,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | |
case PAM_ERROR_MSG: | ||
case PAM_TEXT_INFO: | ||
len = strlen(PAM_MSG_MEMBER(msg, i, msg)); | ||
@@ -1347,6 +1361,9 @@ static struct pam_conv passwd_conv = { s | ||
@@ -1349,6 +1363,9 @@ static struct pam_conv passwd_conv = { s | ||
int | ||
sshpam_auth_passwd(Authctxt *authctxt, const char *password) | ||
{ | ||
|
@@ -55,7 +55,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | |
int flags = (options.permit_empty_passwd == 0 ? | ||
PAM_DISALLOW_NULL_AUTHTOK : 0); | ||
char *fake = NULL; | ||
@@ -1367,6 +1384,15 @@ sshpam_auth_passwd(Authctxt *authctxt, c | ||
@@ -1369,6 +1386,15 @@ sshpam_auth_passwd(Authctxt *authctxt, c | ||
options.permit_root_login != PERMIT_YES)) | ||
sshpam_password = fake = fake_password(password); | ||
|
||
|
@@ -71,7 +71,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/auth-pam.c a/auth-pam.c | |
sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, | ||
(const void *)&passwd_conv); | ||
if (sshpam_err != PAM_SUCCESS) | ||
@@ -1378,6 +1404,16 @@ sshpam_auth_passwd(Authctxt *authctxt, c | ||
@@ -1380,6 +1406,16 @@ sshpam_auth_passwd(Authctxt *authctxt, c | ||
free(fake); | ||
if (sshpam_err == PAM_MAXTRIES) | ||
sshpam_set_maxtries_reached(1); | ||
|
Oops, something went wrong.