Skip to content

Commit

Permalink
Intrusion Detection Added
Browse files Browse the repository at this point in the history
  • Loading branch information
chanakyavasantha committed Dec 15, 2023
1 parent a99f6a0 commit 39aa74e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions harden/file_systems/aide.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import subprocess
from harden import config_file

def get_script(config):
file_systems_config = config["file-systems"]
# Start with an empty script and build it up
script = ""

if file_systems_config['config-fs']['dev_shm']:
# Each file system gets its own set of commands
script += f"""
apt install aide aide-common
aideinit
mv /var/lib/aide/aide.db.new /var/lib/aide/aide.db
"""
return script

if __name__ == "__main__":
config = config_file.read()
print(get_script(config))

0 comments on commit 39aa74e

Please sign in to comment.