Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2169830 - openscap unable to scan debian due to missing libapt dependency
Summary: openscap unable to scan debian due to missing libapt dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openscap
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Ambroz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-14 17:52 UTC by Craig
Modified: 2023-12-06 01:46 UTC (History)
11 users (show)

Fixed In Version: openscap-1.3.9-1.fc37 openscap-1.3.9-1.fc39 openscap-1.3.9-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-05 16:27:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Craig 2023-02-14 17:52:19 UTC
Description of problem:

Using openscap to scan a system that use apt (such as Debian or Ubuntu) returns incomplete results. This warning is logged:
OVAL object 'dpkginfo_object' is not supported.

The problem is that openscap was built without libapt support, looking at the build log at https://kojipkgs.fedoraproject.org//packages/openscap/1.3.7/2.fc38/data/logs/x86_64/build.log
```

-- Linux probes: ON
--   Linux dpkginfo probe (depends on aptpkg): OFF
```

Here's the check in the openscap project build system:
https://github.com/OpenSCAP/openscap/blob/1.3.7/CMakeLists.txt#L291

The openscap package should have:
BuildRequires: apt-libs

Version-Release number of selected component (if applicable):
openscap-1.3.7-2.fc38

How reproducible:
Always

Steps to Reproduce:
1. Run `oscap --v`

Actual results:
`linux         dpkginfo                     probe_dpkginfo` is missing from the output

Expected results:
`linux         dpkginfo                     probe_dpkginfo` should be in the output.

Additional info:

Comment 1 Craig 2023-02-14 18:54:32 UTC
Submitted a PR to the openscap project to fix this issue in their .spec file: https://github.com/OpenSCAP/openscap/pull/1932

Comment 2 Aoife Moloney 2023-11-23 01:15:06 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Michal Ambroz 2023-11-25 16:29:20 UTC
dependency added to the 1.3.9 build in rawhide.
It is now failing for something else, but once it is fix I will propagate to current branches as well.

Comment 4 Fedora Update System 2023-11-27 05:51:58 UTC
FEDORA-2023-27c988a130 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-27c988a130

Comment 5 Fedora Update System 2023-11-27 05:51:59 UTC
FEDORA-2023-194b8a74dc has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-194b8a74dc

Comment 6 Fedora Update System 2023-11-27 05:52:00 UTC
FEDORA-2023-1553e2b9a1 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1553e2b9a1

Comment 7 Fedora Update System 2023-11-28 02:24:17 UTC
FEDORA-2023-27c988a130 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-27c988a130`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-27c988a130

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-11-28 02:40:32 UTC
FEDORA-2023-1553e2b9a1 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1553e2b9a1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1553e2b9a1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-11-28 02:50:47 UTC
FEDORA-2023-194b8a74dc has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-194b8a74dc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-194b8a74dc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-12-05 16:27:26 UTC
FEDORA-2023-194b8a74dc has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-12-06 01:39:41 UTC
FEDORA-2023-1553e2b9a1 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-12-06 01:46:03 UTC
FEDORA-2023-27c988a130 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.