Linux distributions
TMA-ROCKY9-1.8.7
Ensure Wayland is configured
Mô tả
The GNOME Display Manager (GDM) uses the Wayland display server by default. The WaylandEnable setting in the [daemon] block of /etc/gdm/custom.conf (or /etc/gdm3/custom.conf) controls this behavior; when it is set to false, GDM and user login sessions fall back to the legacy Xorg (X11) display server.
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; }; o=$(bash -c 'grep -Psi -- '"'"'^\h*WaylandEnable\h*=\h*false\b'"'"' /etc/gdm/custom.conf /etc/gdm3/custom.conf' 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
If Wayland has been disabled, edit the GDM configuration file (/etc/gdm/custom.conf or /etc/gdm3/custom.conf) and remove or comment out the WaylandEnable=false line in the [daemon] block so that GDM uses the default Wayland display server. For example: # sed -ri '/^\s*\[daemon\]/,/^\s*\[/ s/^(\s*WaylandEnable\s*=\s*false)/# \1/I' /etc/gdm/custom.conf Reboot the system, or restart GDM, for the change to take effect.
Thuộc tính
- Hệ điều hành
- rocky-9
- Thẻ
- cis-convertedlinux
- Tham chiếu
- CIS Rocky Linux 9 Benchmark v3.0.0 - 1.8.7
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