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 more points.



details:   https://anonhg.NetBSD.org/src/rev/580a8b675561
branches:  trunk
changeset: 343119:580a8b675561
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 23 00:05:38 2016 +0000

description:
add more points.

diffstat:

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

diffs (70 lines):

diff -r ba8704c8309f -r 580a8b675561 external/bsd/blacklist/diff/ssh.diff
--- a/external/bsd/blacklist/diff/ssh.diff      Sat Jan 23 00:03:30 2016 +0000
+++ b/external/bsd/blacklist/diff/ssh.diff      Sat Jan 23 00:05:38 2016 +0000
@@ -1,7 +1,8 @@
 --- /dev/null  2015-01-22 23:10:33.000000000 -0500
 +++ dist/pfilter.c     2015-01-22 23:46:03.000000000 -0500
-@@ -0,0 +1,27 @@
+@@ -0,0 +1,28 @@
 +#include "namespace.h"
++#include "includes.h"
 +#include "ssh.h"
 +#include "packet.h"
 +#include "log.h"
@@ -175,3 +176,56 @@
        if (chroot(_PATH_PRIVSEP_CHROOT_DIR) == -1)
                fatal("chroot(\"%s\"): %s", _PATH_PRIVSEP_CHROOT_DIR,
 
+Index: auth-pam.c
+===================================================================
+RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/auth-pam.c,v
+retrieving revision 1.7
+diff -u -u -r1.7 auth-pam.c
+--- auth-pam.c 3 Jul 2015 00:59:59 -0000       1.7
++++ auth-pam.c 23 Jan 2016 00:01:16 -0000
+@@ -114,6 +114,7 @@
+ #include "ssh-gss.h"
+ #endif
+ #include "monitor_wrap.h"
++#include "pfilter.h"
+ 
+ extern ServerOptions options;
+ extern Buffer loginmsg;
+@@ -809,6 +810,7 @@
+                               free(msg);
+                               return (0);
+                       }
++                      pfilter_notify(1);
+                       error("PAM: %s for %s%.100s from %.100s", msg,
+                           sshpam_authctxt->valid ? "" : "illegal user ",
+                           sshpam_authctxt->user,
+Index: auth.c
+===================================================================
+RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/auth.c,v
+retrieving revision 1.15
+diff -u -u -r1.15 auth.c
+--- auth.c     21 Aug 2015 08:20:59 -0000      1.15
++++ auth.c     23 Jan 2016 00:01:16 -0000
+@@ -656,6 +656,7 @@
+ 
+       pw = getpwnam(user);
+       if (pw == NULL) {
++              pfilter_notify(1);
+               logit("Invalid user %.100s from %.100s",
+                   user, get_remote_ipaddr());
+               return (NULL);
+Index: auth1.c
+===================================================================
+RCS file: /cvsroot/src/crypto/external/bsd/openssh/dist/auth1.c,v
+retrieving revision 1.12
+diff -u -u -r1.12 auth1.c
+--- auth1.c    3 Jul 2015 00:59:59 -0000       1.12
++++ auth1.c    23 Jan 2016 00:01:16 -0000
+@@ -376,6 +376,7 @@
+                       char *msg;
+                       size_t len;
+ 
++                      pfilter_notify(1);
+                       error("Access denied for user %s by PAM account "
+                           "configuration", authctxt->user);
+                       len = buffer_len(&loginmsg);



Home | Main Index | Thread Index | Old Index