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

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
ab4cc4
Subject: [PATCH 4/4] 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
ab4cc4
index 7e55b5043..e8267b338 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
-- 
ab4cc4
2.14.1
ab4cc4