mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Add options: --fail-if-cvd-older-than, FailIfCvdOlderThan
* Add a new function cl_cvdgetage() to the libclamav API. This function will retrieve the age of the youngest file in a database directory, or the age of a single CVD (or CLD) file. * Add new clamscan option --fail-if-cvd-older-than=days When passed, causes clamscan to exit with a non-zero return code if the virus database is older than the specified number of days. * Add new clamd option --fail-if-cvd-older-than=days When passed, causes clamd to exit on start-up with a non-zero return code if the virus database is older than the specified number of days. Additionally, we introduce FailIfCvdOlderThan as a clamd.conf synonym for --fail-if-cvd-older-than. Fixes #820
This commit is contained in:
parent
dda7398137
commit
e4fe6654c1
14 changed files with 187 additions and 1 deletions
|
@ -76,6 +76,11 @@ Example
|
|||
# Default: no
|
||||
#OfficialDatabaseOnly no
|
||||
|
||||
# Return with a nonzero error code if the virus database is older than
|
||||
# the specified number of days.
|
||||
# Default: -1
|
||||
#FailIfCvdOlderThan 7
|
||||
|
||||
# The daemon on Windows only supports unsecured TCP sockets.
|
||||
# Due to security reasons make sure that your IP & port is not
|
||||
# exposed to the open internet.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue