germinal/germinal.service
Jason McBrayer 822a5ad66a Add more systemd hardening to example unit file
This *probably* won't interfere with anything anyone is doing with
Germinal, though if you are serving home directories or doing a lot of
work that's not read-only in path handler functions, you may have to
turn off some of these directives.
2022-02-28 09:20:52 -05:00

38 lines
704 B
Desktop File

[Unit]
Description=Germinal, a gemini server
[Service]
ExecStart=/usr/local/share/germinal/germinal.ros
Type=simple
Restart=always
RestartSec=10
User=germinal
CapabilityBoundingSet=
DevicePolicy=closed
LockPersonality=true
NoNewPrivileges=yes
PrivateDevices=true
PrivateTmp=yes
PrivateUsers=true
ProcSubset=pid
ProtectClock=true
ProtectControlGroups=true
ProtectDevices=yes
ProtectHome=yes
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=true
RestrictSUIDSGID=true
UMask=177
[Install]
WantedBy=multi-user.target