Skip to content

Commit

Permalink
sshd: allow UseBlocklist alias for UseBlacklist
Browse files Browse the repository at this point in the history
blacklistd has been renamed to blocklistd upstream, and a future
import into FreeBSD will follow that change.  Support the new name
as an alias in config files.

Reviewed by:	bz, delphij
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25865
  • Loading branch information
emaste committed Jul 29, 2020
1 parent 3b11655 commit e426c74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions crypto/openssh/servconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ static struct {
{ "rdomain", sRDomain, SSHCFG_ALL },
{ "casignaturealgorithms", sCASignatureAlgorithms, SSHCFG_ALL },
{ "useblacklist", sUseBlacklist, SSHCFG_GLOBAL },
{ "useblocklist", sUseBlacklist, SSHCFG_GLOBAL }, /* alias */
{ "noneenabled", sUnsupported, SSHCFG_ALL },
{ "hpndisabled", sDeprecated, SSHCFG_ALL },
{ "hpnbuffersize", sDeprecated, SSHCFG_ALL },
Expand Down
7 changes: 6 additions & 1 deletion crypto/openssh/sshd_config.5
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.\"
.\" $OpenBSD: sshd_config.5,v 1.282 2018/09/20 03:28:06 djm Exp $
.\" $FreeBSD$
.Dd $Mdocdate: September 20 2018 $
.Dd $Mdocdate: July 28 2020 $
.Dt SSHD_CONFIG 5
.Os
.Sh NAME
Expand Down Expand Up @@ -1602,6 +1602,11 @@ to the
daemon.
The default is
.Cm no .
For forward compatibility with an upcoming
.Xr blacklistd
rename, the
.Cm UseBlocklist
alias can be used instead.
.It Cm UseDNS
Specifies whether
.Xr sshd 8
Expand Down

0 comments on commit e426c74

Please sign in to comment.