diff --git a/client/filterreader.py b/client/filterreader.py index f75190f9..20af1533 100644 --- a/client/filterreader.py +++ b/client/filterreader.py @@ -54,7 +54,9 @@ class FilterReader(ConfigReader): def getOptions(self, pOpts): opts = [["string", "ignoreregex", ""], - ["string", "failregex", ""]] + ["string", "failregex", ""], + ["string", "ignorecommand", ""] + ] self.__opts = ConfigReader.getOptions(self, "Definition", opts, pOpts) def convert(self): diff --git a/client/jailreader.py b/client/jailreader.py index 6f78275b..fb92d806 100644 --- a/client/jailreader.py +++ b/client/jailreader.py @@ -80,6 +80,7 @@ class JailReader(ConfigReader): ["string", "usedns", "warn"], ["string", "failregex", None], ["string", "ignoreregex", None], + ["string", "ignorecommand", None], ["string", "ignoreip", None], ["string", "filter", ""], ["string", "action", ""]] @@ -164,6 +165,8 @@ class JailReader(ConfigReader): stream.append(["set", self.__name, "usedns", self.__opts[opt]]) elif opt == "failregex": stream.append(["set", self.__name, "addfailregex", self.__opts[opt]]) + elif opt == "ignorecommand": + stream.append(["set", self.__name, "ignorecommand", self.__opts[opt]]) elif opt == "ignoreregex": for regex in self.__opts[opt].split('\n'): # Do not send a command if the rule is empty. diff --git a/common/protocol.py b/common/protocol.py index 278ccd53..b3055124 100644 --- a/common/protocol.py +++ b/common/protocol.py @@ -57,6 +57,7 @@ protocol = [ ["set dellogpath ", "removes from the monitoring list of "], ["set addfailregex ", "adds the regular expression which must match failures for "], ["set delfailregex ", "removes the regular expression at for failregex"], +["set ignorecommand ", "sets ignorecommand of "], ["set addignoreregex ", "adds the regular expression which should match pattern to exclude for "], ["set delignoreregex ", "removes the regular expression at for ignoreregex"], ["set findtime