oscap prints "E: oscap: Failed to check available memory" message multiple times on RHEL 8.6

Solution Verified - Updated -

Issue

  • Executing the oscap rule which is computing a lot of items for example below rule to scan for unowned files by user , we can see the following error message appearing multiple times:

    # oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig --rule xccdf_org.ssgproject.content_rule_no_files_unowned_by_user /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
    [...]
    --- Starting Evaluation ---
    
    Title   Ensure All Files Are Owned by a User
    Rule    xccdf_org.ssgproject.content_rule_no_files_unowned_by_user
    Ident   CCE-83499-4
    E: oscap:     Failed to check available memory
    E: oscap:     Failed to check available memory
       :
       :
    E: oscap:     Failed to check available memory
    E: oscap:     Failed to check available memory
    Result  fail
    
  • Issue is seen only on some environment and is not reliably reproduced on every environment.

Environment

  • Red Hat Enterprise Linux 8.6
    • openscap-1.3.6-3.el8_6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content