[Pkg-clamav-devel] Bug#598084: clamav-daemon: reportbug incorrectly warns about different database directories for configs when they are the same

Reed Loden reed at reedloden.com
Sun Sep 26 09:07:29 UTC 2010


Package: clamav-daemon
Version: 0.96.3+dfsg-1~volatile1
Severity: minor

I was just filing a bug about a problem I noticed, and I happened to see that reportbug complained that I had 
different database directories for freshclam.conf and clamd.conf. I thought this was weird, so I checked it out. 
Turns out that the directories are the same, but the config directives differ in an ending slash.

The warning:
Database directory: /var/lib/clamav/
WARNING: freshclam.conf and clamd.conf point to different database directories

So, I guess there are (at least) two ways to fix this:
* Modify either the clamav-daemon or the clamav-freshclam package to 
match the same default database directory as the other.
* Fix reportbug hooks to treat the ending slash as optional, which
would make the directories the same.

-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav

Config file: clamd.conf
-----------------------
LogFile = "/var/log/clamav/clamav.log"
LogFileUnlock disabled
LogFileMaxSize disabled
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
ExtendedDetectionInfo = "yes"
PidFile = "/var/run/clamav/clamd.pid"
TemporaryDirectory = "/tmp"
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket disabled
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "10485760"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "12"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
VirusEvent disabled
ExitOnOOM disabled
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
AllowSupplementaryGroups = "yes"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
ScanPDF = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
ClamukoScanOnAccess disabled
ClamukoScannerCount = "3"
ClamukoScanOnOpen disabled
ClamukoScanOnClose disabled
ClamukoScanOnExec disabled
ClamukoIncludePath disabled
ClamukoExcludePath disabled
ClamukoMaxFileSize = "5242880"
DevACOnly disabled
DevACDepth disabled

Config file: freshclam.conf
---------------------------
LogFileMaxSize disabled
LogTime disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
PidFile = "/var/run/clamav/freshclam.pid"
DatabaseDirectory = "/var/lib/clamav/"
Foreground disabled
Debug disabled
AllowSupplementaryGroups disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
SubmitDetectionStats disabled
DetectionStatsCountry disabled
DetectionStatsHostID disabled
SafeBrowsing = "yes"
Bytecode = "yes"

clamav-milter.conf not found

Software settings
-----------------
Version: 0.96.3
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 BZIP2 JIT

Database information
--------------------
Database directory: /var/lib/clamav/
WARNING: freshclam.conf and clamd.conf point to different database directories
bytecode.cvd: version 67, sigs: 10, built on Sat Sep 25 06:39:36 2010
daily.cvd: version 12026, sigs: 131647, built on Sat Sep 25 23:51:16 2010
main.cld: version 52, sigs: 704727, built on Mon Feb 15 09:54:51 2010
safebrowsing.cvd: version 24029, sigs: 659648, built on Sun Sep 26 03:45:35 2010
Total number of signatures: 1496032

Platform information
--------------------
uname: Linux 2.6.26-2-686-bigmem #1 SMP Wed May 12 22:49:37 UTC 2010 i686
OS: linux-gnu, ARCH: i386, CPU: i486
zlib version: 1.2.3.3 (1.2.3.3), compile flags: 55
Triple: i386-pc-linux-gnu
CPU: core2, Little-endian
platform id: 0x0a1137370404030201040302

Build information
-----------------
GNU C: 4.3.2 (4.3.2)
GNU C++: 4.3.2 (4.3.2)
CPPFLAGS: 
CFLAGS: -Wall -g -O2
CXXFLAGS: -Wall -g -O2
LDFLAGS: 
Configure: '--build=i486-linux-gnu' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-clamav' '--with-dbdir=/var/lib/clamav/' '--sysconfdir=/etc/clamav' '--enable-milter' '--disable-clamuko' '--with-gnu-ld' '--enable-dns-fix' '--disable-unrar' '--libdir=/usr/lib' '--with-system-tommath' '--with-ltdl-include=/usr/include' '--with-ltdl-lib=/usr/lib' '--config-cache' 'build_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS=' 'CPPFLAGS='
sizeof(void*) = 4
Engine flevel: 55, dconf: 55

--- data dir ---
total 73040
-rw-r--r-- 1 clamav clamav    80468 2010-09-26 04:48 bytecode.cvd
drwxr-xr-x 2 clamav clamav     4096 2010-05-09 06:26 clamav-d0cc64302ab82bf0e3dba81723d2d217
drwxr-xr-x 2 clamav clamav     4096 2009-06-16 07:38 clamav-e2150a861414ba887fa8478545c4edf4
drwxr-xr-x 2 clamav clamav     4096 2010-07-15 13:37 clamav-f77e0c68e17c2c549dcf300566eca99f
-rw-r--r-- 1 clamav clamav  3114242 2010-09-26 04:48 daily.cvd
-rw-r--r-- 1 clamav clamav 56671744 2010-02-15 12:26 main.cld
-rw------- 1 clamav clamav     2912 2010-09-26 04:48 mirrors.dat
-rw-r--r-- 1 clamav clamav 14812159 2010-09-26 04:48 safebrowsing.cvd

-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clamav-daemon depends on:
ii  clamav-base      0.96.3+dfsg-1~volatile1 anti-virus utility for Unix - base
ii  clamav-freshclam 0.96.3+dfsg-1~volatile1 anti-virus utility for Unix - viru
ii  libbz2-1.0       1.0.5-1+lenny1          high-quality block-sorting file co
ii  libc6            2.7-18lenny4            GNU C Library: Shared libraries
ii  libclamav6       0.96.3+dfsg-1~volatile1 anti-virus utility for Unix - libr
ii  libncurses5      5.7+20081213-1          shared libraries for terminal hand
ii  libtommath0      0.39-3                  multiple-precision integer library
ii  lsb-base         3.2-20                  Linux Standard Base 3.2 init scrip
ii  ucf              3.0016                  Update Configuration File: preserv
ii  zlib1g           1:1.2.3.3.dfsg-12       compression library - runtime

clamav-daemon recommends no packages.

Versions of packages clamav-daemon suggests:
pn  clamav-docs                   <none>     (no description available)
pn  daemon                        <none>     (no description available)

-- no debconf information





More information about the Pkg-clamav-devel mailing list