CalmAV on CentOS 7

yum -y update
yum -y install epel-release
yum clean all
yum -y install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
setsebool -P antivirus_can_scan_system 1
setsebool -P clamd_use_jit 1
getsebool -a | grep antivirus
antivirus_can_scan_system --> on
antivirus_use_jit --> off

sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf
vim /etc/clamd.d/scan.conf
#LocalSocket /var/run/clamd.scan/clamd.sock
LocalSocket /var/run/clamd.scan/clamd.sock
sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
freshclam

systemctl start clamd@scan
systemctl enable clamd@scan

clamscan

 

Leave a comment

Your email address will not be published. Required fields are marked *