Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-45706

OAA doesn't process systemd rules correctly

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • oscap-anaconda-addon
    • None
    • None
    • None
    • rhel-sst-security-compliance
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When OAA performs a SCAP profile remediation, OpenSCAP reads data about systemd units from the installer environment instead of the installed system.

      This leads to problems when some systemd units that exist in the installed system don't exist in the installer system or are different. A rule can pass and then a remediation isn't executed even if it should.

      In past, this bug was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1999587, we attempted to fix it by first-boot remediation but we didn't introduce that feature to RHEL and the bug was closed automatically.

      Recently, this has been discovered during an investigation of upstream productization issue
      https://github.com/ComplianceAsCode/content/issues/12097. Therefore, we are reporting the bug again.

      Please provide the package NVR for which bug is seen:

      • oscap-anaconda-addon-2.0.0-17.el9.noarch.rpm
      • openscap-1.3.8-1.el9
      • scap-security-guide built from current upstream master as of 2024-06-08 as of HEAD 7cde9d1

      How reproducible:

      deterministic

      Steps to reproduce

      1.  perform a installation of a RHEL 9.4 VM with CIS L2 profile using custom content from the version above
      2. run a scan against CIS L2 profile after first boot of the installed VM

      Expected results

      systemd-journal-remote_disabled passes

      Actual results

      systemd-journal-remote_disabled fails

              jcerny@redhat.com Jan Cerny
              jcerny@redhat.com Jan Cerny
              Jan Cerny Jan Cerny
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: