1
0

Hardened systemd unit.

This commit is contained in:
Alexander Andreev 2022-03-09 23:13:04 +04:00
parent c89c349267
commit 871d05aec0
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -4,9 +4,32 @@ After=network-online.target
[Service]
Type=simple
Restart=on-failure
User=dwradio
Group=dwradio
ExecStart=/usr/bin/dwelling-radio -conf /etc/dwelling/radio.yaml
LogsDirectory=dwelling-radio
RuntimeDirectory=dwelling-radio
Restart=on-failure
AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target