From 5b9d877d46f5fc7da1e6d92185dd5810a85a17f8 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 2 Apr 2021 08:04:46 +0200 Subject: [PATCH] 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 --- config/cfgroot/ids-functions.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. # -- 2.39.5