DISA STIGS Viewer

OL 9 must not have a graphical display manager installed unless approved.

Overview

Finding ID Version Rule ID IA Controls Severity
V-271465 OL09-00-000145 SV-271465r1091107_rule   Medium
Description
Unnecessary service packages must not be installed to decrease the attack surface of the system. Graphical display managers have a long history of security vulnerabilities and must not be used, unless approved and documented.
STIG Date
Oracle Linux 9 Security Technical Implementation Guide 2025-05-08

Details

Check Text (C-75515r1091105_chk)
Verify that OL 9 does not have a graphical user interface installed with the following command:

$ dnf list --installed "xorg*common"
Error: No matching Packages to list

If the "x11-server-common" package is installed, and the use of a graphical user interface has not been documented with the information system security officer (ISSO) as an operational requirement, this is a finding.
Fix Text (F-75422r1091106_fix)
Remove all xorg packages with the following command:

Warning: If accessing the system through the graphical user interface, change to the multi-user.target with the following command:

$ sudo systemctl isolate multi-user.target

Warning: Removal of the graphical user interface will immediately render it useless. The following commands must not be run from a virtual terminal emulator in the graphical interface.

$ sudo dnf remove "xorg*"
$ sudo systemctl set-default multi-user.target

If there is an operational requirement for a graphical user interface it must be documented with the ISSO.