Securing Systems and Attached Devices in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Exclude Files From Virus Scans

When you enable antivirus protection, you can specify that all files of specific types are excluded from the virus scan. Because the vscan service affects the performance of the system, you can conserve system resources by targeting specific file types for virus scans.

Before You Begin

You must become an administrator who is assigned the VSCAN Management rights profile. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  1. View the list of all file types that are included in the virus scan.
    # vscanadm get -p types
  2. Specify the types of files to be scanned for virus.

    For example:

    • To exclude a specific file type, for example the JPEG type, from the virus scan.
      # vscanadm set -p types=-jpg,+*
    • To include a specific file type, for example executable files, in the virus scan.
      # vscanadm set -p types=+exe,-*

    For more information, see the vscanadm (1M) man page.