Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJan Pazdziora (Red Hat)
2022-09-22 09:31:17 UTC
Description of problem:
Running RHEL 8.5 provisioning with
%addon org_fedora_oscap
content-type = rpm
content-url = "http://server/path/scap-security-guide-0.1.54-5.el8.noarch.rpm"
content-path = usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
profile = ospp
%end
stops with
Setting up org_fedora_oscap addon
================================================================================
================================================================================
Question
There was an unexpected problem with the supplied content.
The installation should be aborted. Do you wish to continue anyway?
Please respond 'yes' or 'no':
That indicates that the addon did not try to correctly process the profile because if it did, it would stop with
Question
Wrong configuration detected!
/var/log/audit must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/home must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var/log must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var/tmp must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/tmp must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
The installation should be aborted. Do you wish to continue anyway?
Please respond 'yes' or 'no':
like it did on RHEL 8.4 (see bug 2129001).
Version-Release number of selected component (if applicable):
I believe the RHEL 8.5 GA installation media has oscap-anaconda-addon-1.2.1.-4.el8
How reproducible:
Deterministic.
Steps to Reproduce:
1. Have a minimal RHEL 8.5 kickstart, test that it correctly provisions the system.
2. Add
%addon org_fedora_oscap
content-type = rpm
content-url = "http://server/path/scap-security-guide-0.1.54-5.el8.noarch.rpm"
content-path = usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
profile = ospp
%end
to the kickstart, provision.
Actual results:
Setting up org_fedora_oscap addon
================================================================================
================================================================================
Question
There was an unexpected problem with the supplied content.
The installation should be aborted. Do you wish to continue anyway?
Please respond 'yes' or 'no':
Expected results:
Setting up org_fedora_oscap addon
================================================================================
================================================================================
Question
Wrong configuration detected!
/var/log/audit must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/home must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var/log must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/var/tmp must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
/tmp must be on a separate partition or logical volume and has to be created in the partitioning layout before installation can occur with a security profile
The installation should be aborted. Do you wish to continue anyway?
Please respond 'yes' or 'no':
Additional info:
This is a regression against RHEL 8.4 with (I believe) oscap-anaconda-addon-1.1.1-7.el8.
Note that we use the RHEL 8.4 scap-security-guide 0.1.54-5.el8 here specifically to minimize the difference against the RHEL 8.4 case.
This issue is a regression of the addon:
- The addon started to auto-detect filetypes of files in archives (and RPMs), and
- doesn't take the content-path into the account in connection with this autodetection,
and as a result it becomes confused by multiple datastreams being available in RHEL8 or RHEL7 RPMs.
This issue is still valid in RHEL8.7 and in RHEL9.1.
A workaround in form of extracting the datastream and using that one is valid, and another workaround could be to produce "thin RPMs" by only having content for one product present, in this case that would be RHEL8.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (oscap-anaconda-addon bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:2828