Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2025 23:22:39 GMT
From:      Jose Luis Duran <jlduran@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f60ddbd0fb90 - stable/13 - ftpd: blocklist: Add a permission denied probe
Message-ID:  <202509302322.58UNMdBp055663@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=f60ddbd0fb9005aa82985142518a9403a4f30f84

commit f60ddbd0fb9005aa82985142518a9403a4f30f84
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-09-29 16:27:24 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-09-30 23:21:18 +0000

    ftpd: blocklist: Add a permission denied probe
    
    Reviewed by:    emaste
    Approved by:    emaste (mentor)
    Obtained from:  NetBSD
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D52746
    
    (cherry picked from commit 1060684b04b0ee1e07c6c91f7c52978835ff676a)
---
 libexec/ftpd/ftpd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index b525ed99fe48..d031d8815fd2 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1455,6 +1455,7 @@ skip:
 				*remote_ip = 0;
 		remote_ip[sizeof(remote_ip) - 1] = 0;
 		if (!auth_hostok(lc, remotehost, remote_ip)) {
+			BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, STDIN_FILENO, "Permission denied");
 			syslog(LOG_INFO|LOG_AUTH,
 			    "FTP LOGIN FAILED (HOST) as %s: permission denied.",
 			    pw->pw_name);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509302322.58UNMdBp055663>