drasl/example/drasl.service
Evan Goode 25f385ac2c Change Make prefix from /usr/local to /usr
/usr/local is "correct" but it's nicer to just use /usr everywhere, in
packages and installed via `make install`.
2024-05-14 21:24:50 -04:00

39 lines
681 B
Desktop File

[Unit]
Description=Drasl
After=network-online.target
[Service]
DynamicUser=true
ExecStart=/usr/bin/drasl
StateDirectory=drasl
Restart=always
# Hardening
ProtectSystem=strict
PrivateDevices=true
PrivateTmp=true
ProtectKernelLogs=true
ProtectProc=invisible
PrivateUsers=true
ProtectHome=true
UMask=0077
RestrictNamespaces=true
LockPersonality=true
NoNewPrivileges=true
ProtectKernelModules=true
SystemCallArchitectures=native
ProtectHostname=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictRealtime=true
ProtectControlGroups=true
ProtectKernelTunables=true
RestrictSUIDSGID=true
ProtectClock=true
RemoveIPC=true
CapabilityBoundingSet=
[Install]
WantedBy=multi-user.target