Use systemd units section to disable kdump and debug-shell

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-02-27 21:56:58 -07:00
parent 0adadc1932
commit 3f8465e696
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F
4 changed files with 32 additions and 24 deletions

View File

@ -191,14 +191,6 @@
{ {
"path": "/etc/systemd/system/multi-user.target.wants/tuned.service", "path": "/etc/systemd/system/multi-user.target.wants/tuned.service",
"target": "/usr/lib/systemd/system/tuned.service" "target": "/usr/lib/systemd/system/tuned.service"
},
{
"path": "/etc/systemd/system/kdump.service",
"target": "/dev/null"
},
{
"path": "/etc/systemd/system/debug-shell.service",
"target": "/dev/null"
} }
] ]
}, },
@ -243,6 +235,16 @@
{ {
"enabled": true, "enabled": true,
"name": "sshd.socket" "name": "sshd.socket"
},
{
"enabled": false,
"mask": true,
"name": "kdump.service"
},
{
"enabled": false,
"mask": true,
"name": "debug-shell.service"
} }
] ]
} }

View File

@ -100,6 +100,12 @@ systemd:
enabled: false enabled: false
- name: sshd.socket - name: sshd.socket
enabled: true enabled: true
- name: kdump.service
enabled: false
mask: true
- name: debug-shell.service
enabled: false
mask: true
storage: storage:
files: files:
- path: /etc/zincati/config.d/51-rollout-wariness.toml - path: /etc/zincati/config.d/51-rollout-wariness.toml
@ -178,10 +184,6 @@ storage:
target: /usr/lib/systemd/system/unbound.service target: /usr/lib/systemd/system/unbound.service
- path: /etc/systemd/system/multi-user.target.wants/tuned.service - path: /etc/systemd/system/multi-user.target.wants/tuned.service
target: /usr/lib/systemd/system/tuned.service target: /usr/lib/systemd/system/tuned.service
- path: /etc/systemd/system/kdump.service
target: /dev/null
- path: /etc/systemd/system/debug-shell.service
target: /dev/null
kernel_arguments: kernel_arguments:
should_exist: should_exist:
- mitigations=auto,nosmt - mitigations=auto,nosmt

View File

@ -217,14 +217,6 @@
{ {
"path": "/etc/systemd/system/multi-user.target.wants/tuned.service", "path": "/etc/systemd/system/multi-user.target.wants/tuned.service",
"target": "/usr/lib/systemd/system/tuned.service" "target": "/usr/lib/systemd/system/tuned.service"
},
{
"path": "/etc/systemd/system/kdump.service",
"target": "/dev/null"
},
{
"path": "/etc/systemd/system/debug-shell.service",
"target": "/dev/null"
} }
] ]
}, },
@ -284,6 +276,16 @@
{ {
"enabled": true, "enabled": true,
"name": "sshd.socket" "name": "sshd.socket"
},
{
"enabled": false,
"mask": true,
"name": "kdump.service"
},
{
"enabled": false,
"mask": true,
"name": "debug-shell.service"
} }
] ]
} }

View File

@ -157,6 +157,12 @@ systemd:
enabled: false enabled: false
- name: sshd.socket - name: sshd.socket
enabled: true enabled: true
- name: kdump.service
enabled: false
mask: true
- name: debug-shell.service
enabled: false
mask: true
storage: storage:
files: files:
- path: /etc/zincati/config.d/51-rollout-wariness.toml - path: /etc/zincati/config.d/51-rollout-wariness.toml
@ -245,10 +251,6 @@ storage:
target: /usr/lib/systemd/system/unbound.service target: /usr/lib/systemd/system/unbound.service
- path: /etc/systemd/system/multi-user.target.wants/tuned.service - path: /etc/systemd/system/multi-user.target.wants/tuned.service
target: /usr/lib/systemd/system/tuned.service target: /usr/lib/systemd/system/tuned.service
- path: /etc/systemd/system/kdump.service
target: /dev/null
- path: /etc/systemd/system/debug-shell.service
target: /dev/null
kernel_arguments: kernel_arguments:
should_exist: should_exist:
- mitigations=auto,nosmt - mitigations=auto,nosmt