mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
ids-functions.pl: Do not longer extract all rulefiles in archive.
Only extract rulefiles which are located in a rules directory and/or in the archive root. This prevents us from extracting experimental or binary rules etc. which often are located in corresponding sub-directories. Reference: #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
f5c9297fd7
commit
f349c960e4
@@ -544,6 +544,9 @@ sub extractruleset ($) {
|
||||
|
||||
# Handle rules files.
|
||||
} elsif ($file =~ m/\.rules$/) {
|
||||
# Skip rule files which are not located in the rules directory or archive root.
|
||||
next unless(($packed_file =~ /^rules\//) || ($packed_file !~ /\//));
|
||||
|
||||
my $rulesfilename;
|
||||
|
||||
# Splitt the filename into chunks.
|
||||
|
||||
Reference in New Issue
Block a user