commit 1104d69e2962817e2c30cc53372cb57daea0b0b6
parent c1a9f71b39646b532d7ff26001d31fbe0de417ad
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Mon, 9 Sep 2019 06:55:22 +0200
build: Add StateDirectoryMode=0700 option to systemd service
Diffstat:
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/iwd.service.in b/src/iwd.service.in
@@ -21,6 +21,7 @@ ProtectControlGroups=yes
ProtectKernelModules=yes
ConfigurationDirectory=iwd
StateDirectory=iwd
+StateDirectoryMode=0700
[Install]
WantedBy=multi-user.target
diff --git a/tools/run-iwd.sh b/tools/run-iwd.sh
@@ -16,6 +16,7 @@ systemd-run \
--property=ProtectSystem=strict \
--property=ProtectControlGroups=yes \
--property=ProtectKernelModules=yes \
- --property=StateDirectory=iwd \
--property=ConfigurationDirectory=iwd \
+ --property=StateDirectory=iwd \
+ --property=StateDirectoryMode=0700 \
./src/iwd $*
diff --git a/wired/ead.service.in b/wired/ead.service.in
@@ -20,6 +20,7 @@ ProtectControlGroups=yes
ProtectKernelModules=yes
ConfigurationDirectory=ead
StateDirectory=ead
+StateDirectoryMode=0700
[Install]
WantedBy=multi-user.target