Package: fail2ban
Version: 0.8.4+svn20110323-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch

In Ubuntu, the attached patch was applied to achieve the following:

  * Forward-port patch from Marat Khayrullin to fix fail2ban not starting
    if failregex is specified in a jail config. (LP: #635036)


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-7-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- fail2ban-0.8.4+svn20110323.orig/client/jailreader.py
+++ fail2ban-0.8.4+svn20110323/client/jailreader.py
@@ -120,7 +120,7 @@
                        elif opt == "bantime":
                                stream.append(["set", self.__name, "bantime", 
self.__opts[opt]])
                        elif opt == "failregex":
-                               stream.append(["set", self.__name, "failregex", 
self.__opts[opt]])
+                               stream.append(["set", self.__name, 
"addfailregex", self.__opts[opt]])
                        elif opt == "ignoreregex":
                                for regex in self.__opts[opt].split('\n'):
                                        # Do not send a command if the rule is 
empty.

Reply via email to