From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] ids-functions.pl: Extract rules files if they are in a providers rules folder.
Date: Tue, 07 Mar 2023 20:02:26 +0100 [thread overview]
Message-ID: <3ab47620-ff68-b04a-563a-edfdcec5b831@ipfire.org> (raw)
In-Reply-To: <20230307123809.8181-1-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
Reviewed-by: Adolf Belka <adolf.belka(a)ipfire.org>
On 07/03/2023 13:38, Stefan Schantl wrote:
> Now the rules files in a subfolder like "<provider>-rules" also will get
> extracted.
>
> Fixes rule file extraction for Snort Community ruleset.
>
> Fixes #12948.
>
> Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
> ---
> config/cfgroot/ids-functions.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/config/cfgroot/ids-functions.pl
> b/config/cfgroot/ids-functions.pl
> index ec4fdacc5..d97431b4a 100644
> --- a/config/cfgroot/ids-functions.pl
> +++ b/config/cfgroot/ids-functions.pl
> @@ -572,7 +572,7 @@ 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 !~ /\//));
> + next unless(($packed_file =~ /^rules\//) || ($packed_file =~
> /^$provider-rules\//) || ($packed_file !~ /\//));
> # Skip deleted.rules.
> #
--
Sent from my laptop
prev parent reply other threads:[~2023-03-07 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 12:38 Stefan Schantl
2023-03-07 19:02 ` Adolf Belka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ab47620-ff68-b04a-563a-edfdcec5b831@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox