]> git.proxmox.com Git - pmg-api.git/commitdiff
adapt clamav.conf.in to new upstream version
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 8 Aug 2019 16:09:22 +0000 (18:09 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Aug 2019 06:49:03 +0000 (08:49 +0200)
The new version of clamav has changed a few options, which we ship in our
config template - see [0] for the details.
This patch changes all affected options to the new names and additionally
expands the Description of 'archiveblockencrypted' to reflect that the option
is used for both archives _and_ documents.

[0] https://blog.clamav.net/2018/12/clamav-01010-has-been-released.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm
src/templates/clamd.conf.in

index a62d9e42dd7c39226b02665b6f18f1f73a72d8c3..52dd7d0f01314f630f43ba4033053eafa5339c18 100755 (executable)
@@ -331,7 +331,7 @@ sub properties {
            default => 'database.clamav.net',
        },
        archiveblockencrypted => {
-           description => "Whether to block encrypted archives. Mark encrypted archives as viruses.",
+           description => "Whether to block encrypted archives and documents. Mark encrypted archives and documents as viruses.",
            type => 'boolean',
            default => 0,
        },
index 9f119b91ac8bb6422fe4e8620bc8f98d0e046ae1..e165e4c2541c2fddda8166a144a6d9a573bb9de5 100644 (file)
@@ -5,9 +5,9 @@ User clamav
 ScanMail true
 ScanArchive true
 [% IF pmg.clamav.archiveblockencrypted %]
-ArchiveBlockEncrypted true
+AlertEncrypted true
 [% ELSE %]
-ArchiveBlockEncrypted false
+AlertEncrypted false
 [% END %]
 MaxRecursion [% pmg.clamav.archivemaxrec %]
 MaxFiles [% pmg.clamav.archivemaxfiles %]
@@ -34,7 +34,7 @@ ScanPE true
 ScanOLE2 true
 ScanHTML true
 ScanPDF true
-DetectBrokenExecutables true
+AlertBrokenExecutables true
 ExitOnOOM false
 LeaveTemporaryFiles false
 AlgorithmicDetection true
@@ -42,8 +42,8 @@ ScanELF true
 IdleTimeout 30
 PhishingSignatures true
 PhishingScanURLs true
-PhishingAlwaysBlockSSLMismatch false
-PhishingAlwaysBlockCloak false
+AlertPhishingSSLMismatch false
+AlertPhishingCloak false
 DetectPUA false
 ScanPartialMessages false
 HeuristicScanPrecedence false