Feature Request: Per-rule/per-probe evaluation timeout with configurable action #2321
KyleMuncie
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Per-rule/per-probe evaluation timeout with configurable action
Problem
When evaluating heavy XCCDF profiles such as STIG (
xccdf_org.ssgproject.content_profile_stig) on enterprise systems, certain OVAL checks that perform recursive filesystem scans consume excessive memory and time, often leading to OOM kills before the scan completes. Specifically, rules like:xccdf_org.ssgproject.content_rule_file_permissions_ungroupedxccdf_org.ssgproject.content_rule_no_files_unowned_by_userThese rules collect millions of file objects into memory with no upper bound on evaluation time. In our environment (RHEL 8, 64GB RAM hosts), a single rule can run for 30+ minutes, accumulate 20GB+ of memory, and eventually trigger the memory usage ratio limit or OOM kill — taking down the entire scan and losing all results.
Current Behavior
OSCAP_PROBE_MEMORY_USAGE_RATIOprovides a memory ceiling but only terminates the scan — it does not skip the offending rule and continueRequested Feature
A configurable per-rule or per-probe timeout that, when exceeded, marks the rule with a configurable result and continues evaluation of the remaining rules. For example:
When a rule exceeds the timeout, oscap would:
notchecked,error,fail)Why This Matters
Environment
xccdf_org.ssgproject.content_profile_stig)OSCAP_PROBE_MEMORY_USAGE_RATIOlimitBeta Was this translation helpful? Give feedback.
All reactions