diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2023-05-29 23:14:28 -0500 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2023-05-29 23:24:56 -0500 |
commit | 55048ca1c75c7dde6361b87249ff8c1d48aa2485 (patch) | |
tree | abe10ba2ea013ab6666cae762140f48bf50ca362 /security/wazuh-manager/files/patch-tools_mitre_mitredb.py | |
parent | multimedia/musikcube: enable MPRIS protocol support via basu (diff) |
security/wazuh-*: Update to 4.4.3
- Mark IGNORE on FreeBSD 12-aarch64
- Use makepatch to generate patch files
- Fix typo at wazuh-agent and wazuh-manager pkg-message files [1]
- Fix some linking issues when devel/libsysinfo is installed (using ports).
wazuh-manager compile/install a library with the same name like libsysinfo and
it is used by syscollector feature.
- wazuh-dashboard use opensearch-dashboards 2.7.0
- Some other modifications
ChangeLog at: https://github.com/wazuh/wazuh/releases
PR: 271376
Reported by: lambert _ at _ sanesecurityguy.com [1]
Diffstat (limited to 'security/wazuh-manager/files/patch-tools_mitre_mitredb.py')
-rw-r--r-- | security/wazuh-manager/files/patch-tools_mitre_mitredb.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/security/wazuh-manager/files/patch-tools_mitre_mitredb.py b/security/wazuh-manager/files/patch-tools_mitre_mitredb.py new file mode 100644 index 000000000000..bae41b280221 --- /dev/null +++ b/security/wazuh-manager/files/patch-tools_mitre_mitredb.py @@ -0,0 +1,16 @@ +--- tools/mitre/mitredb.py.orig 2023-05-12 12:30:40 UTC ++++ tools/mitre/mitredb.py +@@ -766,13 +766,6 @@ def main(database=None): + # Parse enterprise-attack.json file: + parse_json(pathfile, session, database) + +- # User and group permissions +- os.chmod(database, 0o660) +- uid = pwd.getpwnam("root").pw_uid +- gid = grp.getgrnam("wazuh").gr_gid +- os.chown(database, uid, gid) +- +- + if __name__ == '__main__': + parser = argparse.ArgumentParser(description='This script installs mitre.db in a directory.') + parser.add_argument('--database', '-d', help='-d /your/directory/mitre.db (default: /var/ossec/var/db/mitre.db') |