Created
March 21, 2024 05:47
-
-
Save jmkim/ddc344bb1d9c7c1cbe19b4cb19b09da4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Bluetooth service | |
Documentation=man:bluetoothd(8) | |
ConditionPathIsDirectory=/sys/class/bluetooth | |
[Service] | |
Type=dbus | |
BusName=org.bluez | |
ExecStart=/usr/libexec/bluetooth/bluetoothd | |
NotifyAccess=main | |
#WatchdogSec=10 | |
#Restart=on-failure | |
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE | |
LimitNPROC=1 | |
# Filesystem lockdown | |
ProtectHome=true | |
ProtectSystem=strict | |
PrivateTmp=true | |
ProtectKernelTunables=true | |
ProtectControlGroups=true | |
StateDirectory=bluetooth | |
StateDirectoryMode=0700 | |
ConfigurationDirectory=bluetooth | |
ConfigurationDirectoryMode=0555 | |
# Execute Mappings | |
MemoryDenyWriteExecute=true | |
# Privilege escalation | |
NoNewPrivileges=true | |
# Real-time | |
RestrictRealtime=true | |
[Install] | |
WantedBy=bluetooth.target | |
Alias=dbus-org.bluez.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment