mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
ids-functions.pl: Skip deleted.rules files
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>
This commit is contained in:
committed by
Michael Tremer
parent
0dc98b19ee
commit
e41bb76cc3
@@ -547,6 +547,12 @@ sub extractruleset ($) {
|
|||||||
# Skip rule files which are not located in the rules directory or archive root.
|
# Skip rule files which are not located in the rules directory or archive root.
|
||||||
next unless(($packed_file =~ /^rules\//) || ($packed_file !~ /\//));
|
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;
|
my $rulesfilename;
|
||||||
|
|
||||||
# Splitt the filename into chunks.
|
# Splitt the filename into chunks.
|
||||||
|
|||||||
Reference in New Issue
Block a user