3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-27 19:59:28 +01:00

build: Add StateDirectoryMode=0700 option to systemd service

This commit is contained in:
Marcel Holtmann 2019-09-09 06:55:22 +02:00
parent c1a9f71b39
commit 1104d69e29
3 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ ProtectControlGroups=yes
ProtectKernelModules=yes
ConfigurationDirectory=iwd
StateDirectory=iwd
StateDirectoryMode=0700
[Install]
WantedBy=multi-user.target

View File

@ -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 $*

View File

@ -20,6 +20,7 @@ ProtectControlGroups=yes
ProtectKernelModules=yes
ConfigurationDirectory=ead
StateDirectory=ead
StateDirectoryMode=0700
[Install]
WantedBy=multi-user.target