1
0
mirror of https://github.com/tommytran732/Fedora-CoreOS-Ignition synced 2024-11-21 17:01:34 -05:00

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
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
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

View File

@ -183,7 +183,7 @@
{ {
"path": "/etc/systemd/system/unbound.service.d/override.conf", "path": "/etc/systemd/system/unbound.service.d/override.conf",
"contents": { "contents": {
"source": "https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/systemd/system/unbound.service.d/override.conf" "source": "https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/unbound.service.d/override.conf"
} }
}, },
{ {

View File

@ -238,7 +238,7 @@ storage:
source: https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/unbound/unbound.conf source: https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/unbound/unbound.conf
- path: /etc/systemd/system/unbound.service.d/override.conf - path: /etc/systemd/system/unbound.service.d/override.conf
contents: contents:
source: https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/systemd/system/unbound.service.d/override.conf source: https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/system/unbound.service.d/override.conf
- path: /etc/issue - path: /etc/issue
overwrite: true overwrite: true
contents: contents: