openscap remediation playbook failing with error - Destination /etc/sysconfig/prelink does not exist

Solution Verified - Updated -

Issue

Using an openscap generated playbook for C2S remediation:

oscap xccdf generate fix --profile xccdf_org.ssgproject.content_profile_C2S --fix-type ansible /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml > /tmp/XXX.XXX.XXX.XXX

Running the playbook, an error occurs:

TASK [disable prelinking] **********************************************************************************************************************************************
fatal: [XXX.XXX.XXX.XXX]: FAILED! => {"changed": false, "msg": "Destination /etc/sysconfig/prelink does not exist !", "rc": 257}

Environment

  • Red Hat Enterprise Linux: 7.6
  • Openscap: 1.2.17
  • scap-security-guide: 0.1.36

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