Configuring ClamAV on a Linux Server

ClamAV is a widely used virus scan engine for UNIX, which utilizes specialized packages to recognize viruses and other threats. You can use the ClamSAP library to connect the virus scan adapter to the ClamAV engine.

Prerequisites
The SAP Mobile Platform virus scan adapter with ClamAV requires:
  • ClamAV – is the virus scan engine and development package usually available from Linux distributors.
  • libclamsap – is required to recognize potential threats and is used when SAP Mobile Platform can access a local ClamAv engine. The libclamsap is available from http://sourceforge.net/projects/clamsap/files/.
Task
  1. Enable the default adapter, then edit the adapter path to point to the libclamsap shared library:
    SMP_HOME/Server/config_master/com.sybase365.mobiliser.framework.vsi/com.sybase365.mobiliser.framework.vsi.properties
    (…)   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT=VSA_DEFAULT   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.Active=true   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.AdapterPath=/home/sybase/libclamsap.so   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.Description=DEFAULT PROVIDER   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.Group=DEFAULT   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.PoolInstanceTimeOut=3600   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.PoolMaxInstances=50   
    vsi.provider.Virus_Scan_Adapter.Adapters.VSA_DEFAULT.ReInitTime=0   
    (…) 
  2. Restart SAP Mobile Platform and examine the server log.
    The adapter is loaded successfully when you see these log lines in the SMP_HOME/Server/log/hostname-smp-server.log file:
    (…)   
    2012-09-06 08:43:48,747 [aims-init-15] DEBUG 
    com.sybase365.mobiliser.framework.vscan.scanner.impl.VScanImpl - VSI Virus Scan Service initialization was successful   
    (…) 

    The virus scan installation fails if the adapter does not successfully load.  Analyze the server log file to troubleshoot the issue.