FreeBSD Bugzilla – Attachment 192619 Details for
Bug 227577
security/py-fail2ban: writes '_ip_value' to /etc/hosts.deny instead of the banned IP address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
py-fail2ban.diff.txt (text/plain), 1.91 KB, created by
theis
on 2018-04-18 14:11:56 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
theis
Created:
2018-04-18 14:11:56 UTC
Size:
1.91 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 467675) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= fail2ban > PORTVERSION= 0.10.3.1 >+PORTREVISION= 1 > CATEGORIES= security python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >Index: files/patch-config_action.d_hostsdeny.conf >=================================================================== >--- files/patch-config_action.d_hostsdeny.conf (nonexistent) >+++ files/patch-config_action.d_hostsdeny.conf (working copy) >@@ -0,0 +1,30 @@ >+--- config/action.d/hostsdeny.conf.orig 2018-04-18 16:05:22.844045000 +0200 >++++ config/action.d/hostsdeny.conf 2018-04-18 16:06:30.930069000 +0200 >+@@ -31,7 +31,7 @@ >+ # Tags: See jail.conf(5) man page >+ # Values: CMD >+ # >+-actionban = printf %%b "<daemon_list>: <_ip_value>\n" >> <file> >++actionban = printf %%b "<daemon_list>: <ip_value>\n" >> <file> >+ >+ # Option: actionunban >+ # Notes.: command executed when unbanning an IP. Take care that the >+@@ -39,7 +39,7 @@ >+ # Tags: See jail.conf(5) man page >+ # Values: CMD >+ # >+-actionunban = IP=$(echo "<_ip_value>" | sed 's/[][\.]/\\\0/g') && sed -i "/^<daemon_list>: $IP$/d" <file> >++actionunban = IP=$(echo "<ip_value>" | /usr/bin/sed 's/\([][\.]\)/\\\1/g') && /usr/bin/sed -i "" "/^<daemon_list>: $IP$/d" <file> >+ >+ [Init] >+ >+@@ -56,7 +56,7 @@ >+ daemon_list = ALL >+ >+ # internal variable IP (to differentiate the IPv4 and IPv6 syntax, where it is enclosed in brackets): >+-_ip_value = <ip> >++ip_value = <ip> >+ >+ [Init?family=inet6] >+-_ip_value = [<ip>] >++ip_value = [<ip>] > >Property changes on: files/patch-config_action.d_hostsdeny.conf >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
theis:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 227577
: 192619