Skip to content

Support dpkginfo name pattern operations#2354

Open
officialasishkumar wants to merge 1 commit into
OpenSCAP:mainfrom
officialasishkumar:fix_2338
Open

Support dpkginfo name pattern operations#2354
officialasishkumar wants to merge 1 commit into
OpenSCAP:mainfrom
officialasishkumar:fix_2338

Conversation

@officialasishkumar
Copy link
Copy Markdown
Contributor

Summary

  • enumerate dpkg status entries and filter names through the common OVAL entity comparison helper
  • support equals, not equal, and pattern match operations for dpkginfo_object names
  • add offline dpkginfo probe coverage for exact, pattern, not equal, and virtual package names

Fixes #2338.

Testing

  • cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_PYTHON3=OFF -DENABLE_PERL=OFF -DENABLE_DOCS=OFF -DENABLE_OSCAP_UTIL_DOCKER=OFF -DENABLE_OSCAP_UTIL_AS_RPM=OFF ..
  • make -j2 oscap
  • ctest -R 'probes/dpkginfo/test_probes_dpkginfo.sh' --output-on-failure\n- bash -n tests/probes/dpkginfo/test_probes_dpkginfo.sh\n- xmllint --noout tests/probes/dpkginfo/test_probes_dpkginfo.xml\n- git diff --check

Enumerate Debian package status entries for dpkginfo_object name matching and filter them through the common OVAL entity comparison helper.

This supports equals, not equal, and pattern match operations while preserving exact virtual package lookup through Provides entries.

Add an offline dpkginfo probe regression test covering exact, pattern, not equal, and virtual package names.

Fixes OpenSCAP#2338.
@sonarqubecloud
Copy link
Copy Markdown

@Mab879 Mab879 self-assigned this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dpkginfo_object with name pattern match collects no items

2 participants