From: Andreas Henriksson <andreas@fatal.se>
To: util-linux@vger.kernel.org, Karel Zak <kzak@redhat.com>
Subject: [PATCH v2] Add hardening settings to uuidd.service
Date: Fri, 23 Nov 2018 12:10:59 +0100 [thread overview]
Message-ID: <20181123111059.lsf3s67thfo623jl@fatal.se> (raw)
In-Reply-To: <20181112211031.21996-1-andreas@fatal.se>
This limits what the uuid daemon has access to when it runs.
Further improving this with additional option or making
things even tighter is most likely possible.
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
---
misc-utils/uuidd.service.in | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/misc-utils/uuidd.service.in b/misc-utils/uuidd.service.in
index 531672765..dd38b645c 100644
--- a/misc-utils/uuidd.service.in
+++ b/misc-utils/uuidd.service.in
@@ -7,6 +7,17 @@ ExecStart=@usrsbin_execdir@/uuidd --socket-activation
Restart=no
User=uuidd
Group=uuidd
+ProtectSystem=strict
+ProtectHome=yes
+PrivateDevices=yes
+PrivateNetwork=yes
+PrivateUsers=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectControlGroups=yes
+RestrictAddressFamilies=AF_UNIX
+MemoryDenyWriteExecute=yes
+SystemCallFilter=@default @file-system @basic-io @system-service @signal @io-event @network-io
[Install]
Also=uuidd.socket
--
2.19.2
next prev parent reply other threads:[~2018-11-23 11:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-12 21:10 [RFC/PATCH] Add hardening settings to uuidd.service Andreas Henriksson
2018-11-22 10:32 ` Karel Zak
2018-11-22 11:43 ` Andreas Henriksson
2018-11-23 11:10 ` Andreas Henriksson [this message]
2018-11-29 10:03 ` [PATCH v2] " Karel Zak
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=20181123111059.lsf3s67thfo623jl@fatal.se \
--to=andreas@fatal.se \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).