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:
Stefan Schantl
2022-04-22 05:31:28 +02:00
parent c62121c7e4
commit e41ee3e0f2

View 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);