HomeFreeBSD

security/wazuh-agent: Reimplement getPackages() using SQLite

Description

security/wazuh-agent: Reimplement getPackages() using SQLite

  • getPackages() is a function used to get a set of information about the packages installed on the system where the manager and agent are installed. To obtain this information, pkg-query(8) was used; however, prior to this commit, it was assumed that pkg(8) was installed on the system, which could be wrong, especially on systems such as jails, where pkg(8) is normally used from the host. With this change, we leverage SQLite to read the pkg(8) database and obtain information about the packages, which is also much more efficient than executing a command. This also fixes the segmentation fault in wazuh-modulesd when this condition occurs.
  • Bump PORTREVISION

Details

Provenance
dtxdfAuthored on Wed, Dec 31, 8:26 AM
acmCommitted on Wed, Dec 31, 8:26 AM
Parents
R11:c86d3fc116b3: security/wazuh-manager: Improve port to run inside jail
Branches
Unknown
Tags
Unknown