]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/ids-functions.pl
ids-functions.pl: Introduce extraceruleset() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 27 Mar 2021 11:07:45 +0000 (12:07 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:22:59 +0000 (13:22 +0100)
commit0fbfffea9152715705d1c3c9b318635fd81bb89f
tree374027325d7bf3f3183f2bb483b3f035b800171c
parentae22613224bcdb93454b3035e2a8f48ee40d147f
ids-functions.pl: Introduce extraceruleset() function.

This function is used to extract the required config and rules files
from the stored rules tarball for a given ruleset provider.

* The files will be extracted to a temporary directory layout in
  "/tmp/ids_tmp".

* Names of config files will be adjusted in case multiple providers
  offers the same config files, which is very common.

* The name of the single rulefiles will be adjusted to start with
  the vendors name to allow assigning them very easily to a single
  ruleset provider.

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