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

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