掲示板
ClamAV scanning
Hi all,
I have implemented ClamAV integration with liferay by adding the following to the portal-ext.properties file:
dl.store.antivirus.enabled=true
dl.store.antivirus.impl=com.liferay.portlet.documentlibrary.antivirus.ClamAntivirusScannerImpl
The scanning has been tested with the EICAR virus file and it works well. However, recently we manually updated our ClamAV virus DB (we are not able to do it automatically) and noticed that the DB files are quite large. This in turn has led to the uploading of content in liferay to take much longer than before (a small file takes about 20 seconds to scan and upload instead of the previous 3 seconds). I understand this may be more of a "ClamAV" question, but I'm wondering if anything could be done from a liferay perspective to speed things up? I know ClamAV has both "clamscan" and "clamdscan" - clamdscan is much faster than clamscan - not sure which one we invoke but wonder if it's possible to specify?
Thanks,
Jair.
I have implemented ClamAV integration with liferay by adding the following to the portal-ext.properties file:
dl.store.antivirus.enabled=true
dl.store.antivirus.impl=com.liferay.portlet.documentlibrary.antivirus.ClamAntivirusScannerImpl
The scanning has been tested with the EICAR virus file and it works well. However, recently we manually updated our ClamAV virus DB (we are not able to do it automatically) and noticed that the DB files are quite large. This in turn has led to the uploading of content in liferay to take much longer than before (a small file takes about 20 seconds to scan and upload instead of the previous 3 seconds). I understand this may be more of a "ClamAV" question, but I'm wondering if anything could be done from a liferay perspective to speed things up? I know ClamAV has both "clamscan" and "clamdscan" - clamdscan is much faster than clamscan - not sure which one we invoke but wonder if it's possible to specify?
Thanks,
Jair.
It looks like Liferay's ClamAntivirusScannerImpl is hardcoded to run clamscan (and not clamdscan). The logic is pretty straightforward, so you can try rolling your own implementation calling clamdscan.