Did I mention DM2 can do Anti-Virus scans now
Posted on 2007-12-11 19:49:16 EET.
In trunk and branch-28 (also packaged on channel), in fact for some three weeks now but I never got around to advertise the fact. To enable set the following config key type_blobs_avscan_command to a value, here is the default from config.inc:
/* This is passed to sprintf, use %s where file name should be */
'type_blobs_avscan_command' => '',
/* Example command using ClamAV
'type_blobs_avscan_command' => 'clamscan --stdout -i --no-summary %s',
*/
Though at least on my test (virtual) machine clamscan was really slow to start and ate all the CPU for many seconds even for the EICAR Test file.
To use F-Secure Anti-Virus for Linux (remember to disable the real-time scanner or an infected file will never reach PHP since FSAV will prevent it from being written on the disk, how DM2/PHP in general reacts to this is undefined) use the following command:
'type_blobs_avscan_command' => '/usr/bin/fsav --auto --silent %s',
Naturally you need to have the thing installed first...