AlmaLinux OS 9 must use a separate file system for /var/log.

STIG ID: ALMA-09-025320  |  SRG: SRG-OS-000480-GPOS-00227 |  Severity: medium |  CCI: CCI-000366 |  Vulnerability Id: V-269303

Vulnerability Discussion

Placing "/var/log" in its own partition enables better separation between log files and other files in "/var/".

Check

Verify that a separate file system/partition has been created for "/var/log" with the following command:

$ mount | grep ' /var/log '

/dev/mapper/luks-e0d162f5-fad8-463e-8e39-6bd09e672961 on /var/log type xfs (rw,nosuid,nodev,noexec,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)

If a separate entry for "/var/log" is not in use, this is a finding.

Fix

Migrate the "/var/log" path onto a separate file system.