suricata: Fix ownership of the classification.config file.

The file has to be write-able for the nobody user.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-12-03 15:57:17 +01:00
parent 7ccea46172
commit 9e9d89ae37

View 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