diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 72d7f0a8e31a..53a3c34304ab 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -39,6 +39,8 @@ https://github.com/elastic/beats/compare/v6.7.0...6.x[Check the HEAD diff] *Auditbeat* +- Package dataset: dlopen versioned librpm shared objects. {pull}11565[11565] + *Filebeat* *Heartbeat* diff --git a/x-pack/auditbeat/module/system/package/rpm_linux.go b/x-pack/auditbeat/module/system/package/rpm_linux.go index 89596b1d7853..b29716e5236c 100644 --- a/x-pack/auditbeat/module/system/package/rpm_linux.go +++ b/x-pack/auditbeat/module/system/package/rpm_linux.go @@ -178,7 +178,17 @@ var cFun *cFunctions func dlopenCFunctions() (*cFunctions, error) { var librpmNames = []string{ - "/usr/lib64/librpm.so", + "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", } var cFun cFunctions