How to Enable Virus Scanning on a File System

Use the file system command to allow virus scans of files. For example, to include a ZFS file system in a virus scan, use the zfs(8) command.

The ZFS file system allows some administrative tasks to be delegated to specific users. For more information about delegated administration, see Chapter 9, Oracle Solaris ZFS Delegated Administration in Managing ZFS File Systems in Oracle Solaris 11.4.

You must become an administrator who is assigned the ZFS File System Management or the ZFS Storage Management rights profile. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  1. Enable virus scanning on a ZFS file system, for example, pool/volumes/vol1.
    $ zfs set vscan=on path/pool/volumes/vol1