Adds support to SecRuleRemoveById

This commit is contained in:
Felipe Zimmerle
2016-07-17 00:35:12 -03:00
parent d781b00f70
commit 37079ef668
6 changed files with 154 additions and 0 deletions

View File

@@ -220,6 +220,9 @@ int Rules::evaluate(int phase, Transaction *transaction) {
} else if (transaction->m_allowType != actions::NoneAllowType) {
debug(9, "Skipped rule id '" + std::to_string(rule->rule_id) \
+ "' as request trough the utilization of an `allow' action.");
} else if (m_exceptions.contains(rule->rule_id)) {
debug(9, "Skipped rule id '" + std::to_string(rule->rule_id) \
+ "'. Removed by an SecRuleRemove directive.");
} else {
rule->evaluate(transaction);
}
@@ -271,6 +274,8 @@ int Rules::merge(Driver *from) {
m_responseBodyTypeToBeInspected.insert(*it);
}
this->m_exceptions = from->m_exceptions;
/*
*
* default Actions is something per configuration context, there is