mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ids-functions.pl: Avoid suricata from loading rulesfiles of an
unsupported provider. Modify the write_used_rulefiles_file() function to skip the rulesfiles of unsupported providers. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1484,6 +1484,9 @@ sub write_used_rulefiles_file (@) {
|
|||||||
|
|
||||||
# Loop through the array of enabled providers.
|
# Loop through the array of enabled providers.
|
||||||
foreach my $provider (@providers) {
|
foreach my $provider (@providers) {
|
||||||
|
# Skip unsupported providers.
|
||||||
|
next unless ($IDS::Ruleset::Providers{$provider});
|
||||||
|
|
||||||
# Get the used rulefile for this provider.
|
# Get the used rulefile for this provider.
|
||||||
my @used_rulesfiles = &get_provider_used_rulesfiles($provider);
|
my @used_rulesfiles = &get_provider_used_rulesfiles($provider);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user