Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/diff Add the bad user diff.



details:   https://anonhg.NetBSD.org/src/rev/ccbc9fbf73ce
branches:  trunk
changeset: 336148:ccbc9fbf73ce
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 14 15:42:17 2015 +0000

description:
Add the bad user diff.

diffstat:

 external/bsd/blacklist/diff/ssh.diff |  46 ++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r 3b3707912172 -r ccbc9fbf73ce external/bsd/blacklist/diff/ssh.diff
--- a/external/bsd/blacklist/diff/ssh.diff      Sat Feb 14 15:41:21 2015 +0000
+++ b/external/bsd/blacklist/diff/ssh.diff      Sat Feb 14 15:42:17 2015 +0000
@@ -112,3 +112,49 @@
        /*
         * Stay listening for connections until the system crashes or
         * the daemon is killed with a signal.
+Index: auth1.c
+===================================================================
+RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/auth1.c,v
+retrieving revision 1.9
+diff -u -u -r1.9 auth1.c
+--- auth1.c    19 Oct 2014 16:30:58 -0000      1.9
++++ auth1.c    14 Feb 2015 15:40:51 -0000
+@@ -41,6 +41,7 @@
+ #endif
+ #include "monitor_wrap.h"
+ #include "buffer.h"
++#include "pfilter.h"
+ 
+ /* import */
+ extern ServerOptions options;
+@@ -445,6 +446,7 @@
+       else {
+               debug("do_authentication: invalid user %s", user);
+               authctxt->pw = fakepw();
++              pfilter_notify(1);
+       }
+ 
+       /* Configuration may have changed as a result of Match */
+Index: auth2.c
+===================================================================
+RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/auth2.c,v
+retrieving revision 1.9
+diff -u -u -r1.9 auth2.c
+--- auth2.c    19 Oct 2014 16:30:58 -0000      1.9
++++ auth2.c    14 Feb 2015 15:40:51 -0000
+@@ -52,6 +52,7 @@
+ #include "pathnames.h"
+ #include "buffer.h"
+ #include "canohost.h"
++#include "pfilter.h"
+ 
+ #ifdef GSSAPI
+ #include "ssh-gss.h"
+@@ -256,6 +257,7 @@
+               } else {
+                       logit("input_userauth_request: invalid user %s", user);
+                       authctxt->pw = fakepw();
++                      pfilter_notify(1);
+               }
+ #ifdef USE_PAM
+               if (options.use_pam)



Home | Main Index | Thread Index | Old Index