fw: disallow config to be used as a default policy

Ticket: 8955
(cherry picked from commit 17e2e7f892)
pull/16202/head
Lukas Sismis 2 weeks ago committed by Victor Julien
parent 7b0fd8158b
commit 6370f599d4

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

Loading…
Cancel
Save