Skip to content

Commit ec667a4

Browse files
author
Felipe Zimmerle
committed
Adds support for SecRuleRemoveByTag
1 parent 381cf8a commit ec667a4

File tree

12 files changed

+5545
-5265
lines changed

12 files changed

+5545
-5265
lines changed

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
v3.0.????? - ?
33
---------------------------
4-
4+
5+
- Adds support for SecRuleRemoveByTag.
6+
[Issue #1476 - @zimmerle, @victorhora]
57
- Adds support for update target by message.
68
[Issue #1474 - @zimmerle, @victorhora]
79
- Adds support to SecRuleScript directive.

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,5 @@ TESTS+=test/test-cases/regression/operator-inpectFile.json
290290
TESTS+=test/test-cases/regression/action-exec.json
291291
TESTS+=test/test-cases/regression/directive-sec_rule_script.json
292292
TESTS+=test/test-cases/regression/config-update-target-by-msg.json
293+
TESTS+=test/test-cases/regression/config-remove_by_msg.json
293294

headers/modsecurity/rules_exceptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class RulesExceptions {
5151
bool merge(RulesExceptions& from);
5252

5353
bool loadRemoveRuleByMsg(const std::string &msg, std::string *error);
54+
bool loadRemoveRuleByTag(const std::string &msg, std::string *error);
5455

5556
bool loadUpdateTargetByMsg(const std::string &msg,
5657
std::unique_ptr<std::vector<std::unique_ptr<Variables::Variable> > > var,
@@ -68,6 +69,7 @@ class RulesExceptions {
6869
std::unordered_multimap<std::shared_ptr<std::string>, std::unique_ptr<Variables::Variable>> m_variable_update_target_by_msg;
6970
std::unordered_multimap<double, std::unique_ptr<Variables::Variable>> m_variable_update_target_by_id;
7071
std::list<std::string> m_remove_rule_by_msg;
72+
std::list<std::string> m_remove_rule_by_tag;
7173

7274
private:
7375
std::list<std::pair<int, int> > m_ranges;

0 commit comments

Comments
 (0)