public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] C165: Fix ownership of suricata classification.config file.
@ 2022-03-15 18:24 Stefan Schantl
  2022-03-19 22:00 ` Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Schantl @ 2022-03-15 18:24 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

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(a)ipfire.org>
---
 config/rootfiles/core/165/update.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config/rootfiles/core/165/update.sh b/config/rootfiles/core/165/update.sh
index 00974de73..ffb552c80 100644
--- a/config/rootfiles/core/165/update.sh
+++ b/config/rootfiles/core/165/update.sh
@@ -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();"
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-19 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 18:24 [PATCH] C165: Fix ownership of suricata classification.config file Stefan Schantl
2022-03-19 22:00 ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox