From a411c8d68b2ce7b9ce329d0fb8df67a5dd3e480b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 14 Jan 2020 16:48:37 +0200 Subject: [PATCH] The AlertExceedsMax value is now managed by a variable, default 'no'. --- library/roles/clamav/defaults/main.yml | 1 + library/roles/clamav/templates/scan.conf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/roles/clamav/defaults/main.yml b/library/roles/clamav/defaults/main.yml index bf7c1bdb..acacfcb0 100644 --- a/library/roles/clamav/defaults/main.yml +++ b/library/roles/clamav/defaults/main.yml @@ -27,6 +27,7 @@ clamav_clamd_extended_info: 'yes' clamav_clamd_pidfile: '/run/clamd.scan/clamd.pid' clamav_clamd_tmp: '/var/tmp' clamav_clamd_official_db_only: 'no' +clamav_clamd_alert_exceeding_max: 'no' clamav_clamd_use_local_socket: True clamav_clamd_local_socket: '/run/clamd.scan/clamd.sock' clamav_clamd_use_net_socket: False diff --git a/library/roles/clamav/templates/scan.conf.j2 b/library/roles/clamav/templates/scan.conf.j2 index 8d814f26..59e4b66a 100644 --- a/library/roles/clamav/templates/scan.conf.j2 +++ b/library/roles/clamav/templates/scan.conf.j2 @@ -451,7 +451,7 @@ MaxScanSize {{ clamav_clamd_stream_max_lenght }}M # Note: disabling this limit or setting it too high may result in severe damage # to the system. # Default: 25M -#MaxFileSize 30M +MaxFileSize {{ clamav_clamd_stream_max_lenght }}M # Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR # file, all files within it will also be scanned. This options specifies how @@ -566,7 +566,7 @@ MaxRecursion 10 # MaxRecursion limit will be flagged with the virus # "Heuristics.Limits.Exceeded". # Default: no -AlertExceedsMax yes +AlertExceedsMax {{ clamav_clamd_alert_exceeding_max }} ## ## On-access Scan Settings