summaryrefslogtreecommitdiff
path: root/security/wazuh-agent/files/patch-tools_mitre_mitredb.py
blob: 4af4d5e375f70b9452662ac2b95ff39d15b8c665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- tools/mitre/mitredb.py.orig	2023-05-24 19:23:05 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')