Blame SOURCES/0004-systemd-More-lockdown.patch

b05691
From 9a7872f04cb748e8de743d9136ecd91539d13cb7 Mon Sep 17 00:00:00 2001
b05691
From: Gopal Tiwari <gtiwari@redhat.com>
b05691
Date: Mon, 8 Jun 2020 19:56:42 +0530
b05691
Subject: [PATCH BlueZ 4/4] systemd: More lockdown
b05691
e0630b
From 171d812218883281fed57b57fafd5c18eac441ac Mon Sep 17 00:00:00 2001
e0630b
From: Bastien Nocera <hadess@hadess.net>
e0630b
Date: Wed, 13 Sep 2017 15:38:26 +0200
b05691
b05691
systemd: More lockdown
e0630b
e0630b
bluetoothd does not need to execute mapped memory, or real-time
e0630b
access, so block those.
e0630b
---
e0630b
 src/bluetooth.service.in | 6 ++++++
e0630b
 1 file changed, 6 insertions(+)
e0630b
e0630b
diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
b05691
index 4daedef2a..f18801866 100644
e0630b
--- a/src/bluetooth.service.in
e0630b
+++ b/src/bluetooth.service.in
e0630b
@@ -22,9 +22,15 @@ ProtectControlGroups=true
e0630b
 ReadWritePaths=@statedir@
e0630b
 ReadOnlyPaths=@confdir@
e0630b
 
e0630b
+# Execute Mappings
e0630b
+MemoryDenyWriteExecute=true
e0630b
+
e0630b
 # Privilege escalation
e0630b
 NoNewPrivileges=true
e0630b
 
e0630b
+# Real-time
e0630b
+RestrictRealtime=true
e0630b
+
e0630b
 [Install]
e0630b
 WantedBy=bluetooth.target
e0630b
 Alias=dbus-org.bluez.service
e0630b
-- 
b05691
2.21.1
e0630b