Closed marcusburghardt closed 7 months ago
A straightforward idea (thanks to @jan-cerny) is to define the version 5.11.2
in our content, instead of only 5.11
.
I am still investigating but in some preliminar tests this would work.
Here is the changelog I found about OVAL 5.11.2
And this is the relevant issue:
These issues not relevant to block_size
but are are also related to partition_test:
Analyzing the changelog I didn't find any obvious negative impact in our content if we set the version from 5.11
to 5.11.2
.
The OVAL 5.11.2 is stable and was released in 2016-11-30 and is the current version.
It seems the OVAL condition was introduced by https://github.com/ComplianceAsCode/content/commit/a050df59825379e7793b5f31c40fc1936585a4a6, in 2021.
Description of problem:
After the removal of a condition based on the OVAL version in
auditd_audispd_configure_sufficiently_large_partition
it started to reportunknown
result:SCAP Security Guide Version:
master branch as of 2024-04-25
Operating System Version:
RHEL 9 and RHEL 8
Steps to Reproduce:
Actual Results:
Expected Results:
Pass or Fail based on the partition size.
Additional Information/Debugging Steps:
Investigating the OVAL and some ARF files it was noticed an issue with the OVAL objects in this rule. However, when I tried to fix the issue I identified another problem that blocked me to refactor the OVAL. To properly calculate the partition size it is necessary to collect the
total_space
andblock_size
properties as specified in OVAL documentation:However, the
partition_probe
in OpenSCAP has a condition to collect theblock_size
properly:I didn't find more context about this condition. I didn't find an alternative to get the partition size without this
block_size
property. I am open to ideas. So, we should first consider if we can update this on the scanner side. Otherwise, we should revert the condition removed by #11816 to avoid this issue.