initial commit of file from CVS for smeserver-clamav on Mon 10 Jul 08:35:52 BST 2023

This commit is contained in:
Brian Read
2023-07-10 08:35:52 +01:00
parent bfd6d39c86
commit 8a58bd853d
142 changed files with 1456 additions and 2 deletions

View File

@@ -0,0 +1 @@
24

View File

@@ -0,0 +1 @@
current.cvd.clamav.net

View File

@@ -0,0 +1 @@
db.local.clamav.net

View File

@@ -0,0 +1 @@
no

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
/proc,/sys,/usr/share,/var

View File

@@ -0,0 +1 @@
/home/e-smith/files

View File

@@ -0,0 +1 @@
60

View File

@@ -0,0 +1 @@
no

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
6

View File

@@ -0,0 +1 @@
15M

View File

@@ -0,0 +1 @@
1500

View File

@@ -0,0 +1 @@
8

View File

@@ -0,0 +1 @@
20

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
/var/spool/clamav/quarantine

View File

@@ -0,0 +1 @@
300

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
yes

View File

@@ -0,0 +1 @@
no

View File

@@ -0,0 +1 @@
1800

View File

@@ -0,0 +1 @@
unknown

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1 @@
1610612736

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,20 @@
{
my $smtpd = $DB->get('clamav') or return;
if (my $maxFileSize = $DB->get_prop_and_delete('clamav', 'ArchiveMaxFileSize')) {
$smtpd->merge_props('MaxFileSize', $maxFileSize);
}
if (my $maxRecursion = $DB->get_prop_and_delete('clamav', 'ArchiveMaxRecursion')) {
$smtpd->merge_props('MaxRecursion', $maxRecursion);
}
if (my $maxFiles = $DB->get_prop_and_delete('clamav', 'ArchiveMaxFiles')) {
$smtpd->merge_props('MaxFiles', $maxFiles);
}
if (my $AlertEncrypted = $DB->get_prop_and_delete('clamav', 'ArchiveBlockEncrypted')) {
$smtpd->merge_props('AlertEncrypted', $AlertEncrypted);
}
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav') or return;
return unless ($clamav->prop('DatabaseMirror') eq 'db.us.clamav.net');
$clamav->set_prop('DatabaseMirror','db.local.clamav.net');
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav');
return unless $clamav;
my $LogTime = 'yes';
$DB->set_prop('clamav', 'LogTime', $LogTime);
}

View File

@@ -0,0 +1,7 @@
{
my $clamd = $DB->get('clamd');
return unless $clamd;
my $size = 1610612736;
$DB->set_prop('clamd', 'MemLimit', $size) if $DB->get_prop('clamd','MemLimit') < $size;
}

View File

@@ -0,0 +1,7 @@
{
my $clamd = $DB->get('clamd');
return unless $clamd;
my $size = 600;
$DB->set_prop('clamd', 'SelfCheck', $size);
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav');
return unless $clamav;
if ($clamav{'DetectBrokenExecutables'}) {
$DB->get_prop_and_delete( 'clamav', 'DetectBrokenExecutables' );
}
}

View File

@@ -0,0 +1,2 @@
#!/usr/bin/bash
#keeping that to help migration from older clamd

View File

@@ -0,0 +1,44 @@
<!-- vim: ft=xml ts=8 sw=4 noet:
-->
<lexicon lang="en-us">
<entry>
<base>FORM_TITLE</base>
<trans>Antivirus settings</trans>
</entry>
<entry>
<base>LABEL_FILESYSTEM_SCAN_PERIOD</base>
<trans>Scan filesystem</trans>
</entry>
<entry>
<base>DESC_FILESYSTEM_SCAN_PERIOD</base>
<trans><![CDATA[
<h2>General Settings</h2>
If this option is enabled then the filesystem will be
scanned for viruses. A report of any found viruses will be
emailed to the administrator.]]></trans>
</entry>
<entry>
<base>LABEL_QUARANTINE</base>
<trans>Quarantine infected files</trans>
</entry>
<entry>
<base>LABEL_CLAM_VERSIONS</base>
<trans>ClamAV and db versions</trans>
</entry>
<entry>
<base>WEEKLY</base>
<trans>Weekly</trans>
</entry>
<entry>
<base>NEVER</base>
<trans>Never</trans>
</entry>
<entry>
<base>DAILY</base>
<trans>Daily</trans>
</entry>
<entry>
<base>SUCCESS</base>
<trans>The new clamav antivirus settings have been saved.</trans>
</entry>
</lexicon>

View File

@@ -0,0 +1 @@
PERMS=0644

View File

@@ -0,0 +1 @@
DELETE=DELETE

View File

@@ -0,0 +1 @@
DELETE=DELETE

View File

@@ -0,0 +1 @@
PERMS=0644

View File

@@ -0,0 +1 @@
AlertBrokenExecutables {$clamav{AlertBrokenExecutables} || 'no' }

View File

@@ -0,0 +1 @@
AlertEncrypted { $clamav{AlertEncrypted} || 'no' }

View File

@@ -0,0 +1 @@
AlertExceedsMax { $clamav{AlertExceedsMax} || 'no' }

View File

@@ -0,0 +1 @@
AlertOLE2Macros { $clamav{AlertOLE2Macros} || 'no' }

View File

@@ -0,0 +1 @@
AlertPartitionIntersection { $clamav{AlertPartitionIntersection} || 'no' }

View File

@@ -0,0 +1 @@
AlertPhishingCloak {$clamav{AlertPhishingCloak} || 'no' }

View File

@@ -0,0 +1 @@
AlertPhishingSSLMismatch {$clamav{AlertPhishingSSLMismatch} || 'no' }

View File

@@ -0,0 +1,4 @@
# Enable for 0.103.x
# This takes a LOT more ram as it has have the DBs loaded twice
# Maybe we should check the memory limit before we allow enabling?
ConcurrentDatabaseReload { $clamav{ConcurrentDatabaseReload} || 'no' }

View File

@@ -0,0 +1 @@
DatabaseDirectory /var/lib/clamav

View File

@@ -0,0 +1 @@
Debug { $clamav{Debug} || 'no' }

View File

@@ -0,0 +1 @@
FixStaleSocket yes

View File

@@ -0,0 +1 @@
Foreground no

View File

@@ -0,0 +1 @@
HeuristicAlerts {$clamav{HeuristicAlerts} || 'yes' }

View File

@@ -0,0 +1 @@
HeuristicScanPrecedence { $clamav{HeuristicScanPrecedence} || 'no' }

View File

@@ -0,0 +1,4 @@
{
# Waiting for a new job will timeout after this time (seconds).
"IdleTimeout $clamav{IdleTimeout}";
}

View File

@@ -0,0 +1 @@
LeaveTemporaryFiles { $clamav{LeaveTemporaryFiles} || 'no' }

View File

@@ -0,0 +1 @@
LocalSocket /run/clamd/clamd.socket

View File

@@ -0,0 +1 @@
LocalSocketMode 666

View File

@@ -0,0 +1 @@
LogClean { $clamav{LogClean} || 'yes' }

View File

@@ -0,0 +1 @@
LogFile /var/log/clamd/current

View File

@@ -0,0 +1 @@
LogTime { $clamav{LogTime} || 'yes' }

View File

@@ -0,0 +1 @@
LogVerbose { $clamav{LogVerbose} || 'yes' }

View File

@@ -0,0 +1,4 @@
{
# Maximum length the queue of pending connections may grow to.
"MaxConnectionQueueLength $clamav{MaxConnectionQueueLength}";
}

View File

@@ -0,0 +1,4 @@
{
# Maximal depth directories are scanned at.
"MaxDirectoryRecursion $clamav{MaxDirectoryRecursion}";
}

View File

@@ -0,0 +1,5 @@
{
# Files in archives larger than this limit won't be scanned.
# Value of 0 disables the limit.
"MaxFileSize $clamav{MaxFileSize}";
}

View File

@@ -0,0 +1,5 @@
{
# Number of files to be scanned within an archive.
# Value of 0 disables the limit.
"MaxFiles $clamav{MaxFiles}";
}

View File

@@ -0,0 +1,7 @@
{
# 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
# deep the process should be continued.
# Value of 0 disables the limit.
"MaxRecursion $clamav{MaxRecursion}";
}

View File

@@ -0,0 +1,4 @@
{
# Maximal number of threads running at the same time.
"MaxThreads $clamav{MaxThreads}";
}

View File

@@ -0,0 +1 @@
PidFile /run/clamd/clamd.pid

View File

@@ -0,0 +1,5 @@
{
# Waiting for data from a client socket will timeout after this time (seconds).
# Value of 0 disables the timeout.
"ReadTimeout $clamav{ReadTimeout}";
}

View File

@@ -0,0 +1 @@
ScanArchive { $clamav{ScanArchive} || 'yes' }

View File

@@ -0,0 +1 @@
ScanHTML { $clamav{ScanHTML} || 'yes' }

View File

@@ -0,0 +1 @@
ScanMail { $clamav{ScanMail} || 'yes' }

View File

@@ -0,0 +1 @@
ScanOLE2 { $clamav{ScanOLE2} || 'yes' }

View File

@@ -0,0 +1 @@
ScanPE { $clamav{ScanPE} || 'yes' }

View File

@@ -0,0 +1,2 @@
# Perform internal sanity check (database integrity and freshness).
SelfCheck { $clamav{SelfCheck} || '600' }

View File

@@ -0,0 +1,2 @@
# Close the connection if this limit is exceeded.
StreamMaxLength { $clamav{StreamMaxLength} || '25M' }

View File

@@ -0,0 +1,7 @@
{
# TCP address.
# By default we bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
$clamav{TCPAddr} ? "TCPAddr $clamav{TCPAddr}" : '#TCPAddr 127.0.0.1';
}

View File

@@ -0,0 +1,4 @@
{
# TCP port address.
$clamav{TCPSocket} ? "TCPSocket $clamav{TCPSocket}" : '#TCPSocket 3310';
}

View File

@@ -0,0 +1 @@
TemporaryDirectory /var/tmp

View File

@@ -0,0 +1 @@
User clamscan

Some files were not shown because too many files have changed in this diff Show More