Securing Systems and Attached Devices in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Limit the Size of Scanned Files

Many scan engines limit the size of the files they scan, so the vscan service's max-size property must be set to a value less than or equal to the scan engine's maximum allowed size. You then define whether files that are larger than the maximum size, and therefore not scanned, are accessible.

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 current properties.
    # vscanadm show
  2. Set the maximum size for virus scans.

    For example, to set a limit of 128 megabytes:

    # vscanadm set -p max-size=128M
  3. Specify that access is denied to any file that is not scanned due to its size.
    # vscanadm set -p max-size-action=deny

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