From: Stefan Schantl Date: Fri, 2 Apr 2021 06:04:46 +0000 (+0200) Subject: ids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b9d877d46f5fc7da1e6d92185dd5810a85a17f8;p=people%2Fpmueller%2Fipfire-2.x.git ids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file() function. This function simply returns the gernerated path and filename for the provider specific modified sids file. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 9ea9b69dc7..88405ab82b 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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. #