Linux distributions
TMA-ROCKY9-1.8.7
Ensure Wayland is configured
Descrição
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.
Como é verificado
Método de auditoria: Comando 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- Saída esperada
compliant
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
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.
Propriedades
- Sistemas operacionais
- rocky-9
- Tags
- cis-convertedlinux
- Referência
- CIS Rocky Linux 9 Benchmark v3.0.0 - 1.8.7
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
tmaegis scan --target linux