-
Notifications
You must be signed in to change notification settings - Fork 0
/
service
47 lines (42 loc) · 947 Bytes
/
service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# https://nileshgr.com/2016/07/09/systemd-fastcgi-multiple-processes
[Unit]
RequiresMountsFor=/var/lib/collectd/rrd
[Service]
User=www-data
Group=www-data
ExecStart=/usr/lib/cgi-bin/collection.fcgi
StandardOutput=null
StandardInput=socket
StandardError=null
# Security lockdown.
[Service]
PrivateNetwork=yes
DynamicUser=yes
User=
Group=
CapabilityBoundingSet=
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=yes
DevicePolicy=closed
IPAddressDeny=any
PrivateDevices=yes
PrivateUsers=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
RestrictRealtime=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
UMask=0077
ProtectHostname=yes
ProcSubset=pid
RuntimeDirectory=collection4
WorkingDirectory=/run/collection4