AlmaLinux OS 9 must disable the ability of systemd to spawn an interactive boot process.

STIG ID: ALMA-09-013550 |  SRG: SRG-OS-000480-GPOS-00227 |  Severity: medium |  CCI:  | Vulnerability Id: V-269199

Vulnerability Discussion

Using interactive or recovery boot, the console user could disable auditing, firewalls, or other services, weakening system security.

Check

Configure AlmaLinux OS 9 to disable the ability of systemd to spawn an interactive boot process with the following command:

$ grubby --update-kernel=ALL --remove-args="systemd.confirm_spawn"

Fix

Verify that GRUB 2 is configured to disable interactive boot.

Check that the current GRUB 2 configuration disables the ability of systemd to spawn an interactive boot process with the following command:

$ grubby --info=ALL | grep args | grep 'systemd.confirm_spawn'

If any output is returned, this is a finding.