fw: disallow config to be used as a default policy

Ticket: 8954
pull/16185/head
Lukas Sismis 2 weeks ago committed by Victor Julien
parent d6521adf4e
commit 17e2e7f892

@ -4213,6 +4213,11 @@ static int DoParsePolicy(const char *policy_name, struct DetectFirewallPolicy *p
return -1;
idx++;
}
if (action & ACTION_CONFIG) {
SCLogError("%s: 'config' is not a valid default policy action", policy_name);
return -1;
}
pol->action = action;
pol->action_scope = action_scope;
return 1;

Loading…
Cancel
Save