diff options
| author | Jose Luis Duran <jlduran@FreeBSD.org> | 2025-09-29 16:27:24 +0000 |
|---|---|---|
| committer | Jose Luis Duran <jlduran@FreeBSD.org> | 2025-09-29 16:27:24 +0000 |
| commit | 1060684b04b0ee1e07c6c91f7c52978835ff676a (patch) | |
| tree | f0061d977ce27195bc16496e9ef591f411457d19 | |
| parent | 307929b211e07f91260105211b57678e906327af (diff) | |
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
| -rw-r--r-- | libexec/ftpd/ftpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 3861036a5a8a..9c3516710133 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1425,6 +1425,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); |
