mirror of
https://github.com/HorlogeSkynet/systemd-hardene.d.git
synced 2026-04-18 05:10:45 +02:00
31 lines
779 B
Plaintext
31 lines
779 B
Plaintext
[Service]
|
|
CapabilityBoundingSet=CAP_CHOWN CAP_AUDIT_WRITE CAP_DAC_OVERRIDE CAP_FSETID CAP_KILL CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
PrivateBPF=yes
|
|
PrivateTmp=yes
|
|
|
|
ProtectClock=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectHostname=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=-/etc/cups -/etc/printcap -/var/cache/cups -/var/spool/cups
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
|
IPAddressDeny=any
|
|
IPAddressAllow=localhost
|
|
IPAddressAllow=192.168.0.0/16 10.0.0.0/8 172.16.0.0/12
|
|
IPAddressAllow=fe80::/10
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
|
|
LockPersonality=yes
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|