From patchwork Tue Mar 15 17:25:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5347 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4KJ0gN1FNfz3xK1 for ; Tue, 15 Mar 2022 17:26:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4KJ0gL3l6zz4jy; Tue, 15 Mar 2022 17:26:06 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4KJ0gL2NF3z2yC5; Tue, 15 Mar 2022 17:26:06 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4KJ0gK0yFQz2xR7 for ; Tue, 15 Mar 2022 17:26:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4KJ0gJ2SXRzWD; Tue, 15 Mar 2022 17:26:04 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1647365164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7pkKjA/PyIK6ZmsNtTF+Sb7hW5JRfP5GSUNxHJGRtHE=; b=BsMMrbb+F8+XaoNhtEPDdMGtWA4qTAdp7rWVdkKP5PSD9tqFf4o/hRlP93SL6qxMhaLWI4 Du4RSQqWJu50LrBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1647365164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7pkKjA/PyIK6ZmsNtTF+Sb7hW5JRfP5GSUNxHJGRtHE=; b=JIqMfdtepPw0YqQSYlbknu9KMwpqT4u8cQlLg0u5MNehl+gQwa6ayWDcuhRrVXdiZv1BEy mNo7Hs0zpmS0SzFzHs2uVHamGsn/wa+FI6poP+Z2NifxmEvKuse7XmIpDAozfIX3hDwbR6 oasmHFyEBrLE5OSNr9GkIh8NJ/9Un550RzAXDnZiM3RVBwZCXmoppfMWQKUXPkWfKd32TM UbnLjUWipdzl2QQG8nq1DDNyQbdavdQrIA+udpVJY7DrSf5fppRDQ+WeHNKcoklazZYibq qhpgYJSlWZtsdebeuV3ekrO1Mfl6efm2LDWakVDTU5IG9MPd9zHz5hOT0LOjSw== 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 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.