blob: 6dc5d32e3265186326fcb0e928880e08c303e1cd (
plain)
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
48
49
50
51
|
[Unit]
Description=Graywolf APRS radio transceiver and gateway
Documentation=https://github.com/chrissnell/graywolf
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/graywolf -config /var/lib/graywolf-aprs/graywolf.db -history-db /var/lib/graywolf-aprs/graywolf-history.db -modem /usr/bin/graywolf-modem -http 0.0.0.0:8080
Restart=on-failure
RestartSec=5
User=graywolf-aprs
Group=graywolf-aprs
SupplementaryGroups=audio uucp plugdev gpio
# Writable state for SQLite database
StateDirectory=graywolf-aprs
# Allow binding to privileged ports
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
# Filesystem hardening
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
ReadWritePaths=/var/lib/graywolf-aprs
# Network
PrivateNetwork=no
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
# Kernel hardening
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectClock=yes
ProtectHostname=yes
# Execution hardening
NoNewPrivileges=yes
LockPersonality=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
RemoveIPC=yes
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target
|