]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ids-functions.pl: Avoid suricata from loading rulesfiles of an
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 22 Apr 2022 03:31:28 +0000 (05:31 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 22 Apr 2022 03:31:28 +0000 (05:31 +0200)
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>
config/cfgroot/ids-functions.pl

index f6627ba2bff29b5f94962f0d0c04c5bd65abcf21..3994d17808838fcdab57d390daee85ce4a9d7b1d 100644 (file)
@@ -1484,6 +1484,9 @@ sub write_used_rulefiles_file (@) {
 
        # Loop through the array of enabled providers.
        foreach my $provider (@providers) {
+               # Skip unsupported providers.
+               next unless ($IDS::Ruleset::Providers{$provider});
+
                # Get the used rulefile for this provider.
                my @used_rulesfiles = &get_provider_used_rulesfiles($provider);