C165: Fix ownership of suricata classification.config file.

The file has to be write-able for the WUI and update script, which both
are executed as nobody.

Fixes #12803.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-15 19:24:02 +01:00
committed by Michael Tremer
parent e41bb76cc3
commit 5f3dc2ca06

View File

@@ -129,6 +129,9 @@ ldconfig
telinit u
/etc/rc.d/init.d/firewall restart
# Fix ownership of classification file.
chown nobody:nobody /usr/share/suricata/classification.config
# Rebuild IPS rules
rm -vf /tmp/ids_page_locked
perl -e "require '/var/ipfire/ids-functions.pl'; &IDS::oinkmaster();"