A system, method and computer program product are provided for efficient
on-access computer virus scanning of files. Initially, a process for
accessing files is identified. Thereafter, virus detection actions are
selected based at least in part on the process. The virus detection
actions are then performed on the files.