mirror of
https://github.com/HorlogeSkynet/systemd-hardene.d.git
synced 2026-06-27 04:00:13 +02:00
39 lines
828 B
Plaintext
39 lines
828 B
Plaintext
[Service]
|
|
AmbientCapabilities=CAP_SETUID CAP_SETGID
|
|
CapabilityBoundingSet=CAP_SETUID CAP_SETGID
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
PrivateBPF=yes
|
|
PrivateDevices=yes
|
|
PrivateIPC=yes
|
|
PrivateMounts=yes
|
|
PrivateTmp=yes
|
|
PrivateUsers=full
|
|
|
|
ProtectClock=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectHostname=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectProc=noaccess
|
|
ProcSubset=pid
|
|
ProtectSystem=strict
|
|
ReadWritePaths=-/run/opendkim -/var/spool/postfix/var/run/opendkim
|
|
RuntimeDirectory=opendkim
|
|
RuntimeDirectoryMode=0750
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
|
|
LockPersonality=yes
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@privileged @system-service
|
|
SystemCallFilter=~@resources memfd_create
|