]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
ids.cgi: Restart suricata if necessary when altering the ruleset.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 1 Apr 2020 08:32:40 +0000 (10:32 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 1 Apr 2020 14:41:51 +0000 (14:41 +0000)
commitaf8e5145fa969f0c99c9650c16e05bc71d7297b1
treea8afbfc0661c682f76f7ba8aa255c62d9e70c504
parent2ff56df4e045f5ebca0bc3142ce60410bc51cb30
ids.cgi: Restart suricata if necessary when altering the ruleset.

Suricata does support re-reading it's configuration files and therfore
we need to restart it, if one or more ruleset files should be loaded or
not loaded anymore.

If simple some rules inside the same files are activated or deactivated
we are still fine to call the reload method to send suricata the signal
to reload its ruleset.

Fixes #12340.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/ids.cgi