From: Stefan Schantl Date: Sun, 20 Mar 2022 14:34:57 +0000 (+0100) Subject: ids-functions.pl: Add get_provider_ruleset_modifications_file(). X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=518cbdd38905ed7909f7dfe218957cbc828a004c;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Add get_provider_ruleset_modifications_file(). This function will obosolete the old oinkmaster modifications files. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 5e23452449..e86816019a 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -1550,6 +1550,18 @@ sub get_used_provider_rulesfile_file ($) { return $filename; } +# +## Tiny function to generate the full path and name for the file which stores the modifications of a ruleset. +# +sub get_provider_ruleset_modifications_file($) { + my ($provider) = @_; + + my $filename = "$settingsdir/$provider\-modifications"; + + # Return the filename. + return $filename; +} + # ## Function to generate and write the file for modify the ruleset. #