From a4ecd400910871763408d0f4ac152070686359a2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 3 Dec 2021 15:57:17 +0100 Subject: [PATCH] suricata: Fix ownership of the classification.config file. The file has to be write-able for the nobody user. Signed-off-by: Stefan Schantl --- lfs/suricata | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs/suricata b/lfs/suricata index 866b4c5a73..e08c73986b 100644 --- a/lfs/suricata +++ b/lfs/suricata @@ -103,6 +103,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # to the rules directory. rm -rfv /etc/suricata/*.config + # Set correct ownership for the classifiction config file. + # (File has to be writeable for the nobody user) + chown nobody:nobody /usr/share/suricata/classification.config + # Set correct ownership for /var/lib/suricata and the # contained files chown -R nobody:nobody /var/lib/suricata -- 2.39.5