Description of problem: Currently executing rules "Add xxx Option to /var/log" and "Add xxx Option to /var/log/audit" on a system which is not configured with separate partitions returns "fail", whereas it should return "notapplicable". Version-Release number of selected component (if applicable): scap-security-guide-0.1.66-2.el8_7 How reproducible: Always Steps to Reproduce: 1. Execute "Add xxx Option to /var/log" rule on a system which doesn't have a /var/log partition Actual results: fail Expected results: notapplicable Additional info: PR has been submitted. Screenshots before / after PR attached.
In upstream, a "mount" applicability platform has been introduced by https://github.com/ComplianceAsCode/content/pull/10431. This platform has been added to rules for /tmp and /var/tmp mount options. What remains to be done there is to add the "mount" platform to the rules concerning /var/log and /var/log/audit, and also possibly to all other similar rules where it would make sense, as suggested in https://github.com/ComplianceAsCode/content/issues/10504.
A PR that introduces mount platforms to other rules has been merged to upstream: https://github.com/ComplianceAsCode/content/pull/10794