mirror of
https://github.com/HorlogeSkynet/systemd-hardene.d.git
synced 2026-05-12 20:00:37 +02:00
34 lines
810 B
Plaintext
34 lines
810 B
Plaintext
[Service]
|
|
CapabilityBoundingSet=CAP_BLOCK_SUSPEND CAP_CHOWN CAP_DAC_OVERRIDE CAP_LEASE CAP_MAC_ADMIN CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUIDCAP_SYS_ADMIN CAP_SYS_RESOURCE CAP_SYSLOG
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
PrivateBPF=yes
|
|
PrivateDevices=no
|
|
DevicePolicy=closed
|
|
DeviceAllow=/dev/kmsg
|
|
DeviceAllow=/dev/log
|
|
PrivateIPC=yes
|
|
PrivateMounts=yes
|
|
PrivateTmp=yes
|
|
|
|
ProtectClock=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectHostname=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=-/var/cache/apparmor -/var/log -/var/spool/rsyslog
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
|
|
LockPersonality=yes
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|