Skip to content

oscap-podman and oscap-docker evaluate all rules as notapplicable #1942

Description

@jan-cerny

Description of Problem:

When scanning an UBI 8 image using oscap-podman or oscap-docker, all rules are evaluated as notapplicable.

This problem has been discovered during a review of #1931 but isn't caused by that PR.

OpenSCAP Version:

openscap-1.3.7-1.fc37.x86_64
podman-4.3.1-1.fc37.x86_64

Operating System & Version:

F 37

Steps to Reproduce:

with oscap-podman:

  1. sudo podman pull registry.access.redhat.com/ubi8/ubi
  2. sudo oscap-podman registry.access.redhat.com/ubi8/ubi:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml

with oscap-docker:

  1. sudo systemctl start podman
  2. sudo podman pull registry.access.redhat.com/ubi8/ubi
  3. sudo oscap-docker image registry.access.redhat.com/ubi8/ubi:latest xccdf eval --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml

Actual Results:

all rules are notapplicable

Expected Results:

some rules are applicable and evaluated

Additional Information / Debugging Steps:

[jcerny@thinkpad ~]$ sudo podman images registry.access.redhat.com/ubi8/ubi:latest
REPOSITORY                           TAG         IMAGE ID      CREATED      SIZE
registry.access.redhat.com/ubi8/ubi  latest      270f760d3d04  13 days ago  214 MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions