diff mbox series

[BlueZ,1/2] bluetooth.service: Set StateDirectoryMode

Message ID 20220419182237.2531907-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,1/2] bluetooth.service: Set StateDirectoryMode | expand

Commit Message

Luiz Augusto von Dentz April 19, 2022, 6:22 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This sets StateDirectoryMode to 0700 as it is the current mode used for
creating files inside the storage and it is different than the default
systemd uses which is 0755:

[1] https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectoryMode=
---
 src/bluetooth.service.in | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
index 4d39ad49d..4ea98b506 100644
--- a/src/bluetooth.service.in
+++ b/src/bluetooth.service.in
@@ -20,6 +20,7 @@  PrivateTmp=true
 ProtectKernelTunables=true
 ProtectControlGroups=true
 StateDirectory=bluetooth
+StateDirectoryMode=0700
 ConfigurationDirectory=bluetooth
 
 # Execute Mappings