]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file()
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 2 Apr 2021 06:04:46 +0000 (08:04 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:23:43 +0000 (13:23 +0100)
function.

This function simply returns the gernerated path and filename for the
provider specific modified sids file.

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

index 9ea9b69dc78076f58a74377c41966f37325643c1..88405ab82b71009f73f4f07c06bef71226490216 100644 (file)
@@ -896,6 +896,20 @@ sub drop_dl_rulesfile ($) {
        }
 }
 
+#
+## Tiny function to get/generate the full path and filename for the providers oinkmaster
+## modified sids file.
+#
+sub get_oinkmaster_provider_modified_sids_file ($) {
+       my ($provider) = @_;
+
+       # Generate the filename.
+       my $filename = "$settingsdir/oinkmaster-$provider-modified-sids.conf";
+
+       # Return the filename.
+       return $filename;
+}
+
 #
 ## Function to check if the IDS is running.
 #