From: Stefan Schantl Date: Fri, 22 Apr 2022 03:31:28 +0000 (+0200) Subject: ids-functions.pl: Avoid suricata from loading rulesfiles of an X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41ee3e0f24cb89b20a758e2281531ed76577ef4;p=people%2Fstevee%2Fipfire-2.x.git 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 --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index f6627ba2bf..3994d17808 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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);