From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] ids-functions.pl: Skip deleted.rules files Date: Tue, 15 Mar 2022 18:25:57 +0100 Message-ID: <20220315172557.2451-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6245985509030111240==" List-Id: --===============6245985509030111240== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- config/cfgroot/ids-functions.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 2736363a5..8e046b225 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -536,6 +536,12 @@ sub extractruleset ($) { # Skip rule files which are not located in the rules directory or archiv= e root. next unless(($packed_file =3D~ /^rules\//) || ($packed_file !~ /\//)); =20 + # 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 =3D~ m/deleted.rules$/); + my $rulesfilename; =20 # Splitt the filename into chunks. --=20 2.30.2 --===============6245985509030111240==--