]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: delete obsolete comment
authordjm@openbsd.org <djm@openbsd.org>
Thu, 27 Jun 2024 23:01:15 +0000 (23:01 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 27 Jun 2024 23:07:27 +0000 (09:07 +1000)
OpenBSD-Commit-ID: 5fb04f298ed155053f3fbfdf0c6fe7cdf84bbfa2

sshd.c

diff --git a/sshd.c b/sshd.c
index 3f085b83863b85a2a29645fca1805f52114e1fd7..ed54fc6d6c994945115a2b5c3bfed44cb05eaf87 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.608 2024/06/26 23:47:46 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.609 2024/06/27 23:01:15 djm Exp $ */
 /*
  * Copyright (c) 2000, 2001, 2002 Markus Friedl.  All rights reserved.
  * Copyright (c) 2002 Niels Provos.  All rights reserved.
@@ -390,25 +390,7 @@ child_reap(struct early_child *child)
                        break;
                }
        }
-       /*
-        * XXX would be nice to have more subtlety here.
-        *  - Different penalties
-        *      a) authentication failures without success (e.g. brute force)
-        *      b) login grace exceeded (penalise DoS)
-        *      c) monitor crash (penalise exploit attempt)
-        *      d) unpriv preauth crash (penalise exploit attempt)
-        *  - Unpriv auth exit status/WIFSIGNALLED is not available because
-        *    the "mm_request_receive: monitor fd closed" fatal kills the
-        *    monitor before waitpid() can occur. It would be good to use the
-        *    unpriv exit status to detect crashes.
-        *
-        * For now, just penalise (a), (b) and (c), since that is what we have
-        * readily available. The authentication failures detection cannot
-        * discern between failed authentication and other connection problems
-        * until we have the unpriv exist status plumbed through (and the unpriv
-        * child modified to use a different exit status when auth has been
-        * attempted), but it's a start.
-        */
+
        if (child->have_addr)
                srclimit_penalise(&child->addr, penalty_type);