feat(packaging): add systemd security hardening to service
This commit is contained in:
parent
d2fcd2efa5
commit
b947e892d0
|
|
@ -14,6 +14,34 @@ Type=simple
|
||||||
WorkingDirectory=/opt/vikunja
|
WorkingDirectory=/opt/vikunja
|
||||||
ExecStart=/usr/local/bin/vikunja
|
ExecStart=/usr/local/bin/vikunja
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
# Hardening
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
PrivateTmp=yes
|
||||||
|
ProtectHome=yes
|
||||||
|
ProtectProc=invisible
|
||||||
|
ProcSubset=pid
|
||||||
|
UMask=0077
|
||||||
|
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
AmbientCapabilities=
|
||||||
|
ProtectKernelTunables=yes
|
||||||
|
ProtectKernelModules=yes
|
||||||
|
ProtectKernelLogs=yes
|
||||||
|
ProtectControlGroups=yes
|
||||||
|
ProtectClock=yes
|
||||||
|
ProtectHostname=yes
|
||||||
|
PrivateDevices=yes
|
||||||
|
RestrictNamespaces=yes
|
||||||
|
RestrictSUIDSGID=yes
|
||||||
|
RestrictRealtime=yes
|
||||||
|
LockPersonality=yes
|
||||||
|
MemoryDenyWriteExecute=yes
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
SystemCallFilter=~@privileged @resources
|
||||||
|
|
||||||
# If you want to bind Vikunja to a port below 1024 uncomment
|
# If you want to bind Vikunja to a port below 1024 uncomment
|
||||||
# the two values below
|
# the two values below
|
||||||
###
|
###
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue