TMAegisBeta
linux için daha fazla kural

Linux distributions

TMA-ROCKY9-1.8.7

Ensure Wayland is configured

OrtaDüzey 1Otomatiklinux

Açıklama

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.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

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
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

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.

Özellikler

İşletim sistemleri
rocky-9
Etiketler
cis-convertedlinux
Referans
CIS Rocky Linux 9 Benchmark v3.0.0 - 1.8.7

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target linux