]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
suricata: Create empty threshold.config file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 12:49:52 +0000 (14:49 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 12:49:52 +0000 (14:49 +0200)
The file is referenced in the suricata config file and if not
present some ugly warnings will be displayed/logged during startup.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
lfs/suricata

index 9a8583ea9e1f6a2ce4f8b4fe81d29780f9f435c4..d09f87a5cc3d43e5000a0d0606c35a573e798881 100644 (file)
@@ -112,6 +112,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # (File has to be writeable for the nobody user)
        chown nobody:nobody /usr/share/suricata/classification.config
 
+       # Create empty threshold config file.
+       touch /usr/share/suricata/threshold.config
+
+       # Set correct ownership for the threshold.config file.
+       chown nobody:nobody /usr/share/suricata/threshold.config
+
        # Set correct ownership for /var/lib/suricata and the
        # contained files
        chown -R nobody:nobody /var/lib/suricata