Skip to content

Commit

Permalink
Enable Yara and Insights for RHEL
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <contact@tommytran.io>
  • Loading branch information
TommyTran732 committed Dec 7, 2022
1 parent 0d8cd21 commit 34a2c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,13 @@ linux_hardening(){
mkdir -p /etc/systemd/system/sshd.service.d
curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/limits.conf -o /etc/systemd/system/sshd.service.d/limits.conf
systemctl restart sshd

if [ "$lsb_dist" = "rhel" ]; then
insights-client --register
dnf install -y yara
insights-client --collector malware-detection
sed -i 's/test_scan: true/test_scan: false/' /etc/insights-client/malware-detection-config.yml
fi
}

database_host_reset(){
Expand Down

0 comments on commit 34a2c22

Please sign in to comment.