Skip to content

AlmaLinux OS 9 must be configured so that all system device files are correctly labeled to prevent unauthorized modification.

An XCCDF Rule

Description

If an unauthorized or modified device is allowed to exist on the system, there is the possibility the system may perform unintended or unauthorized operations.

ID
SV-269275r1050157_rule
Version
ALMA-09-022020
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Restore the SELinux policy for the affected device file from the system policy database using the following command:

$ restorecon -v <device_path>

Substituting "<device_path>" with the path to the affected device file (from the output of the previous commands). An example device file path would be "/dev/ttyUSB0". If the output of the above command does not indicate that the device was relabeled to a more specific SELinux type label, then the SELinux policy of the system must be updated with more specific policy for the device class specified. If a package was used to install support for a device class, that package could be reinstalled using the following command: