]> git.ipfire.org Git - thirdparty/suricata.git/commit
exception: fix use of master switch with default
authorJuliana Fajardini <jufajardini@oisf.net>
Wed, 21 Jun 2023 20:54:41 +0000 (17:54 -0300)
committerVictor Julien <vjulien@oisf.net>
Wed, 5 Jul 2023 04:41:23 +0000 (06:41 +0200)
commite306bc6ecc9f526d02d178c5715e40e493fa8cb6
tree8f1db337a734f11331ace5ed3db73d68786ef246
parent1521b77edd04921a9b5f9419f84c62a812315e7a
exception: fix use of master switch with default

If an exception policy wasn't set up individually, use the GetDefault
function to pick one. This will check for the master switch option and
handle 'auto' cases.

Instead of deciding what the auto value should be when we are parsing
the master switch, leave that for when some of the other policies is to
be set via the master switch, when since this can change for specific
exception policies - like for midstream, for instance.

Update exceptions policies documentation to clarify that the default
configuration in IPS when midstream is enabled is `ignore`, not
`drop-flow`.

Bug #6169
doc/userguide/configuration/exception-policies.rst
src/util-exception-policy.c