firewall: do not support config action in TD rules

In firewall mode.
Second part: rule action.

Ticket: #9041
pull/16459/head
Juliana Fajardini 3 weeks ago committed by Victor Julien
parent 46aa14f61c
commit 893ccda1e1

@ -1022,6 +1022,12 @@ static int SigParseOptions(DetectEngineCtx *de_ctx, Signature *s, char *optstr,
optname);
goto error;
}
if (EngineModeIsFirewall() && !s->init_data->firewall_rule && s->action & ACTION_CONFIG) {
SCLogError(
"action \'config\' is not supported in threat detection rules with firewall mode");
goto error;
}
int setup_ret = 0;
/* Validate double quoting, trimming trailing white space along the way. */

Loading…
Cancel
Save