]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids-functions.pl: Add get_provider_ruleset_modifications_file().
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Mar 2022 14:34:57 +0000 (15:34 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Mar 2022 14:34:57 +0000 (15:34 +0100)
This function will obosolete the old oinkmaster modifications files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 132c6ba82a7638a215a46020b93074577c1d3e4d..b86105e728aa727726093c7be59f3c505812c747 100644 (file)
@@ -1594,6 +1594,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.
 #