]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
suricata: Set correct ownership for default rules file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 8 Jan 2022 15:17:09 +0000 (16:17 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 8 Jan 2022 15:17:09 +0000 (16:17 +0100)
The file has to be write-able for the WUI.

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

index 9394d9f47574e7354f257e0da0ff79f963f4e98c..a870e3668c63216096e02dc9a6221c146d9ce10a 100644 (file)
@@ -100,6 +100,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # Install yaml file for loading default rules.
        install -m 0664 $(DIR_SRC)/config/suricata/suricata-default-rules.yaml /var/ipfire/suricata
 
+       # Set correct ownership for the default rules file.
+       chown nobody:nobody /var/ipfire/suricata/suricata-default-rules.yaml
+
        # Create emtpy rules directory.
        -mkdir -p /var/lib/suricata