From 0d99255c0614d0218912724b97f6cfdb4811a895 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 16 Apr 2022 14:49:52 +0200 Subject: [PATCH] suricata: Create empty threshold.config file. 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 --- lfs/suricata | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lfs/suricata b/lfs/suricata index 9a8583ea9e..d09f87a5cc 100644 --- a/lfs/suricata +++ b/lfs/suricata @@ -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 -- 2.39.2