Adds support to action `exec' to sec lang parser

This commit is contained in:
Felipe Zimmerle
2016-01-12 10:57:06 -03:00
parent 331df90bab
commit 702551ed42
2 changed files with 28 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ using modsecurity::Variables::Tx;
%token <std::string> FREE_TEXT
%token <std::string> ACTION
%token <std::string> ACTION_ACCURACY
%token <std::string> ACTION_EXEC
%token <std::string> ACTION_ALLOW
%token <std::string> ACTION_REDIRECT
%token <std::string> ACTION_SKIP_AFTER
@@ -827,6 +828,24 @@ act:
{
$$ = Action::instantiate($1);
}
| ACTION_EXEC
{
/*
TODO: exec is not implemented yet.
std::string error;
Allow *exec = new Exec($1);
if (exec->init(&error) == false) {
driver.parserError << error;
YYERROR;
}
$$ = exec;
*/
$$ = Action::instantiate($1);
}
| ACTION_ALLOW
{
/*