From: Peter Müller Date: Mon, 22 Apr 2024 16:44:00 +0000 (+0000) Subject: suricata.yaml: Fix Landlock path settings X-Git-Tag: v2.29-core186~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=464b2117ead41a2c5f5771665f828e74e3e40f82;p=ipfire-2.x.git suricata.yaml: Fix Landlock path settings Suricata will complain if it cannot read its own configuration file, hence read-only access to /etc/suricata must be allowed. Since the list applies to directories, rather than files, restricting read access to only /usr/share/misc/magic.mgc is not possible; reading /usr/share/misc must be allowed instead. Fixes: #13645 Tested-by: Peter Müller Signed-off-by: Peter Müller Signed-off-by: Arne Fitzenreiter --- diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index b57a1d9d49..faa1aa71d9 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -775,7 +775,8 @@ security: # /usr and /etc folders are added to read list to allow # file magic to be used. read: - - /usr/share/misc/magic.mgc + - /etc/suricata + - /usr/share/misc - /usr/share/suricata - /var/ipfire/suricata - /var/lib/suricata