1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-22 14:52:05 -05:00

Improve unbound systemd hardening

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-06-26 12:12:54 -07:00
parent af99058f4e
commit c2ef5743a2
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
2 changed files with 5 additions and 3 deletions

View File

@ -10,9 +10,10 @@ ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelModules=true
# This breaks using socket options like 'so-rcvbuf'. Explicitly disable for visibility.
ProtectKernelTunables=false
ProtectKernelTunables=true
ProtectProc=invisible
#ProtectSystem=strict
# ProtectSystem with strict does not work - need further testing.
ProtectSystem=full
#RuntimeDirectory=unbound
#ConfigurationDirectory=unbound
#StateDirectory=unbound

View File

@ -12,7 +12,8 @@ ProtectKernelModules=true
# This breaks using socket options like 'so-rcvbuf'.
ProtectKernelTunables=true
ProtectProc=invisible
#ProtectSystem=strict
# ProtectSystem with strict does not work - need further testing.
ProtectSystem=full
#RuntimeDirectory=unbound
#ConfigurationDirectory=unbound
#StateDirectory=unbound