]> git.ipfire.org Git - people/pmueller/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>
Sun, 19 Dec 2021 12:32:43 +0000 (13:32 +0100)
The file has to be write-able for the nobody user.

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

index be0a64d766a18af73ad0435e2c66af884ac35d7c..9394d9f47574e7354f257e0da0ff79f963f4e98c 100644 (file)
@@ -107,6 +107,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