Unbound systemd hardening moved to Linux-Setup-Scripts

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy
2024-06-25 22:32:16 -07:00
parent 7f470747b9
commit b674e55d42
3 changed files with 2 additions and 21 deletions

View File

@@ -1,19 +0,0 @@
[Service]
MemoryDenyWriteExecute=true
PrivateDevices=true
PrivateTmp=true
ProtectHome=true
ProtectClock=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelModules=true
# This breaks using socket options like 'so-rcvbuf'. Explicitly disable for visibility.
ProtectKernelTunables=true
ProtectProc=invisible
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictRealtime=true
SystemCallArchitectures=native
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources
RestrictNamespaces=yes
LockPersonality=yes
RestrictSUIDSGID=yes