]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
suricata: Fix ownership of the classification.config file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 3 Dec 2021 14:57:17 +0000 (15:57 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 3 Dec 2021 14:57:17 +0000 (15:57 +0100)
The file has to be write-able for the nobody user.

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

index 866b4c5a731b9246b780e8e5d449564274642db9..e08c73986b0ebb8743d6aaa0dcfb8590b6874a58 100644 (file)
@@ -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