TMAegisБета
Другие правила для linux

Linux distributions

TMA-ROCKY10-2.1.20

Ensure X window server services are not in use

НизкийУровень 2Автоматическаяlinux

Описание

The X Window System provides a Graphical User Interface (GUI) where users can have multiple windows in which to run programs and various add on. The X Windows system is typically used on workstations where users login, but not on servers where users typically do not login.

Как проверяется

Метод проверки: Команда оболочки

shell
alt0() { command -v rpm >/dev/null 2>&1 || { echo "step1: rpm not installed"; return 1; }; o=$(bash -c 'rpm -q xorg-x11-server-Xwayland' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- 'package xorg-x11-server-Xwayland is not installed' || { echo step1: missing 'package xorg-x11-server-Xwayland is not installed'; return 1; }; }; if alt0; then echo compliant; fi
Ожидаемый вывод
compliant

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

- IF - a Graphical Desktop Manager or X-Windows server is not required and approved by local site policy: Run the following command to remove the X Windows Server packages: # dnf remove xorg-x11-server-Xwayland

Свойства

Операционные системы
rocky-10
Теги
cis-convertedlinux
Источник
CIS Rocky Linux 10 Benchmark v1.0.0 - 2.1.20

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target linux --level 2