Linux distributions
TMA-ALMA9-1.4.5
Ensure systemd ability to spawn an interactive boot process is disabled
Mô tả
The systemd.confirm_spawn kernel argument causes systemd to prompt interactively at the console before spawning each unit during boot. Removing this argument prevents an interactive boot process.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; command -v grubby >/dev/null 2>&1 || { echo "step1: grubby not installed"; return 1; }; o=$(bash -c 'grubby --info=ALL | grep -E '"'"'^\s*args='"'"' | grep '"'"'systemd.confirm_spawn'"'"'' 2>/dev/null); [ -z "$o" ] || { echo "step1: $o" | head -c 300; return 1; }; }; if alt0; then echo compliant; fi- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Run the following command to remove the systemd.confirm_spawn argument from all boot entries: # grubby --update-kernel ALL --remove-args=systemd.confirm_spawn Then edit /etc/default/grub and remove systemd.confirm_spawn from the GRUB_CMDLINE_LINUX (and GRUB_CMDLINE_LINUX_DEFAULT) line so it is not reintroduced on the next kernel or bootloader update. If the system uses /etc/kernel/cmdline, remove it there as well.
Thuộc tính
- Hệ điều hành
- almalinux-9
- Thẻ
- cis-convertedlinux
- Tham chiếu
- CIS AlmaLinux OS 9 Benchmark v3.0.0 - 1.4.5
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target linux