Fix various minor issues on the auditlog schema

This commit is contained in:
Felipe Zimmerle
2015-08-27 17:50:42 -03:00
parent 24b7d72666
commit e89e395a32
5 changed files with 13 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ class Driver;
}
#include "actions/action.h"
#include "actions/audit_log.h"
#include "actions/set_var.h"
#include "actions/severity.h"
#include "actions/msg.h"
@@ -201,6 +202,7 @@ using ModSecurity::Variables::Variable;
%token <std::string> OPERATOR
%token <std::string> FREE_TEXT
%token <std::string> ACTION
%token <std::string> ACTION_AUDIT_LOG
%token <std::string> ACTION_SEVERITY
%token <std::string> ACTION_SETVAR
%token <std::string> ACTION_MSG
@@ -619,6 +621,10 @@ act:
$$ = setVar;
}
| ACTION_AUDIT_LOG
{
$$ = new ModSecurity::actions::AuditLog($1);
}
| LOG_DATA
{
$$ = new LogData($1);