]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
ids-functions.pl: Skip deleted.rules files
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 15 Mar 2022 17:25:57 +0000 (18:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Mar 2022 17:52:27 +0000 (17:52 +0000)
These rulefiles are used by various providers as a kind of reference and
to store rules which have been taken out for correctness, performance
reasons or because of other reasons.

Fixes #12794.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/ids-functions.pl

index c4edd968d05f9572bf9a99c62ab6f7e710b93dd2..94dccc8ae38fb1fbf401efb2e0c9ffad7815265a 100644 (file)
@@ -547,6 +547,12 @@ sub extractruleset ($) {
                                # Skip rule files which are not located in the rules directory or archive root.
                                next unless(($packed_file =~ /^rules\//) || ($packed_file !~ /\//));
 
+                               # Skip deleted.rules.
+                               #
+                               # Mostly they have been taken out for correctness or performance reasons and therfore
+                               # it is not a great idea to enable any of them.
+                               next if($file =~ m/deleted.rules$/);
+
                                my $rulesfilename;
 
                                # Splitt the filename into chunks.