Public bug reported:

[Impact]

The "libdbus-1-dev" package is missing from the "Build-Depends" in the
"debian/control" file, and as a result, the OVAL object support for
"systemdunitproperty" and "systemdunitdependency" is missing. About
10~15% of the SCAP content based on CIS benchmark relies on these two
OVAL objects - they are important and should be supported. Simply adding
the missing dependency will enable these OVAL objects for OpenSCAP.

[Test Case]

Run the command "oscap --v", and without the "libdbus-1-dev" dependency,
content under "Supported OVAL objects and associated OpenSCAP probes"
will NOT include the "systemdunitproperty" and "systemdunitdependency".
Once the "libdbus-1-dev" dependency is added and libopenscap8 rebuilt,
the command "oscap --v" will show "systemdunitproperty" and
"systemdunitdependency" as supported.

[Regression Potential]

The changes proposed enables new functionality that is already included
in the source package, and does not change the behavior of existing code
significantly.

Using the same patch attached to this bug report, Canonical security
certification team has created a PPA here:
https://launchpad.net/~guanym/+archive/ubuntu/ppa.

The team is actively using the PPA to develop SCAP content with and without the 
proposed changes:
 -- Without the proposed changes, ran scans using OpenSCAP against SCAP content 
with 40+ diverse rules based on CIS benchmark, and saved the xml scan result. 
The content included a rule that requires "systemdunitproperty" support, and 
the rule simply evaluated to "unknown", which is expected
 -- With the proposed changes, ran scan against the same SCAP content, and 
saved the xml scan result. The result was identical with the only exception 
that the "systemdunitproperty" dependent rule evaluated properly. 

We are also running similar scans against an ever growing SCAP content
base 20~30 times on a daily basis, and OpenSCAP behaved normally.

[Other Info]

A similar bug report has been submitted to Debian.

** Affects: openscap (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "enable systemdunit support by adding libdbus-1-dev as a 
required build dependency"
   
https://bugs.launchpad.net/bugs/1661401/+attachment/4812243/+files/openscap-1.2.8.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1661401

Title:
  libopenscap8: missing dependency resulting in missing OVAL objects
  support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openscap/+bug/1661401/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to