Go to main content

Securing Systems and Attached Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020

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.4.

  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 viruses:
    • Exclude a specific file type, for example the JPEG type, from the virus scan.
      $ vscanadm set -p types=-jpg,+*
    • Include a specific file type, for example executable files, in the virus scan.
      $ vscanadm set -p types=+exe,-*

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