OS4X plugin os4xplugin clamav

From OS4X
Revision as of 10:44, 27 November 2024 by Admin (talk | contribs) (Created page with "Category:Plugins == Purpose == This plugin executes a virus scan on demand for every single file of the job. If a virus is found, the job will be aborted. == Requirement...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Purpose

This plugin executes a virus scan on demand for every single file of the job. If a virus is found, the job will be aborted.

Requirements

  • File /etc/os4x.conf or configuration file referenced by environment variable $OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here.

Configuration

  • Enable more debug output: By default, the "clamscan" executable will be run with the parameter "--quiet", which will then be removed in order to output more statistical data.
  • Absolute path of clamscan binary: The ClamAV scanner binary can be overriden with this parameter. The given file will be resolved either via $PATH or is given as absolute path. It must be executable.
  • Maximum filesize (MB): Files bigger than this big will be skipped for the virus scanner.

Return codes

  • 0: everything OK
  • 1: Number of parameters != 1; Config file /etc/os4x.conf not found; Config in database not readable; License not valid; XML file invalid or virus is found