27 lines
525 B
Plaintext
27 lines
525 B
Plaintext
|
[Unit]
|
||
|
StartLimitIntervalSec=0
|
||
|
|
||
|
[Service]
|
||
|
Restart=always
|
||
|
RestartSec=10
|
||
|
|
||
|
# TODO: Add mounts
|
||
|
TemporaryFileSystem=/:ro
|
||
|
BindReadOnlyPaths=/etc/influxdb /usr /lib /lib64
|
||
|
|
||
|
SecureBits=noroot
|
||
|
ProtectSystem=strict
|
||
|
PrivateUsers=true
|
||
|
NoNewPrivileges=yes
|
||
|
ProtectControlGroups=yes
|
||
|
ProtectKernelModules=yes
|
||
|
ProtectKernelTunables=yes
|
||
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||
|
RestrictNamespaces=yes
|
||
|
RestrictRealtime=yes
|
||
|
RestrictSUIDSGID=yes
|
||
|
MemoryDenyWriteExecute=yes
|
||
|
LockPersonality=yes
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|