]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
C165: Fix ownership of suricata classification.config file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 15 Mar 2022 18:24:02 +0000 (19:24 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Mar 2022 10:14:24 +0000 (10:14 +0000)
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>
config/rootfiles/core/165/update.sh

index 00974de7381ed75220b05a562d6856b35dada144..ffb552c802cc8d9948789e97266348132951feb7 100644 (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();"