Skip to content

[Auditbeat] system/package failing on Fedora 31+ #19253

@andrewkroh

Description

@andrewkroh

The system/package dataset fails on Fedora 31 and newer because it cannot open librpm.

ERROR [package] package/package.go:246 failed to get packages: error getting RPM packages: unable to open a handle to the library

It uses dlopen, but does not try to load librpm.so.9 which is what Fedora 31 has.

func openLibrpm() (*librpm, error) {
var librpmNames = []string{
"librpm.so", // with rpm-devel installed
"librpm.so.8", // Fedora 29
"librpm.so.3", // CentOS 7
"librpm.so.1", // CentOS 6
// Following for completeness, but not explicitly tested
"librpm.so.7",
"librpm.so.6",
"librpm.so.5",
"librpm.so.4",
"librpm.so.2",
}

As a workaround, installing rpm-devel will create symlink to fix the issue /usr/lib64/librpm.so -> librpm.so.9.0.1.

For confirmed bugs, please report:

  • Version: v7.7.0, v7.8.0
  • Operating System: Fedora 31

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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