From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 3/4] suricata: Enable landlock security feature Date: Fri, 05 Apr 2024 21:26:39 +0200 Message-ID: <20240405192640.5215-3-stefan.schantl@ipfire.org> In-Reply-To: <20240405192640.5215-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1578365632919108291==" List-Id: --===============1578365632919108291== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit This will limit the suricata process to only read and write to a certain files/directories. Signed-off-by: Stefan Schantl --- config/suricata/suricata.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index fae01fbf5..9c8107429 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -768,16 +768,16 @@ security: limit-noproc: true # Use landlock security module under Linux landlock: - enabled: no + enabled: yes directories: - #write: - # - @e_rundir@ + write: + - /run # /usr and /etc folders are added to read list to allow # file magic to be used. read: - - /usr/ - - /etc/ - - @e_sysconfdir@ + - /usr/share/misc/magic.mgc + - /var/ipfire/suricata/ + - /var/lib/suricata/rules/ lua: # Allow Lua rules. Disabled by default. -- 2.39.2 --===============1578365632919108291==--