From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 3/4] suricata: Enable landlock security feature
Date: Fri, 05 Apr 2024 21:26:39 +0200 [thread overview]
Message-ID: <20240405192640.5215-3-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <20240405192640.5215-1-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
This will limit the suricata process to only read and write to a certain
files/directories.
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
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
next prev parent reply other threads:[~2024-04-05 19:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 19:26 [PATCH 1/4] suricata: Update suricata.yaml Stefan Schantl
2024-04-05 19:26 ` [PATCH 2/4] suricata: Set exception-policy to pass-packet Stefan Schantl
2024-04-05 19:26 ` Stefan Schantl [this message]
2024-04-05 19:26 ` [PATCH 4/4] suricata: Set midstream-policy " Stefan Schantl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240405192640.5215-3-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox