[Pkg-clamav-devel] Bug#778445: clamav-milter/MilterSocket debconf option ignored during initial install

Branko Majic branko at majic.rs
Sat Feb 14 14:58:07 UTC 2015


Package: clamav-milter
Version: 0.98.5+dfsg-0+deb7u2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Attempt to prepare package configuration via debconf-set-selections prior to package installation.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. Set debconf option via command:

echo "clamav-milter	clamav-milter/MilterSocket	string	/var/spool/postfix/var/run/clamav/clamav-milter.ctl" | debconf-set-selections

2. Install package clamav-milter:

apt-get install clamav-milter

3. Check the value for option MiletSocket in ClamAV Milter configuration file:

grep MilterSocket /etc/clamav/clamav-milter.conf

   * What was the outcome of this action?

MilterSocket /var/run/clamav/clamav-milter.ctl
MilterSocketGroup clamav
MilterSocketMode 666

   * What outcome did you expect instead?

MilterSocket /var/spool/postfix/var/run/clamav/clamav-milter.ctl
MilterSocketGroup clamav
MilterSocketMode 666

   * Additional comments

Upon installing the package, I can clearly see via debconf-get-selections that the debconf option is still set to the path I set it to via debconf-set-selections. The interesting part is that in spite of this when running dpkg-reconfigure clamav-milter, and getting to question clamav-milter/MilterSocket, the value listed for it is /var/run/clamav/clamav-milter.ctl. Upon changing the value here, I get the desired value in the config file. That's why I think the issue happens during installation process only.


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

Config file: clamd.conf
-----------------------
LogFile = "/var/log/clamav/clamav.log"
StatsHostID = "auto"
StatsEnabled disabled
StatsPEDisabled = "yes"
StatsTimeout = "10"
LogFileUnlock disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
PidFile = "/var/run/clamav/clamd.pid"
TemporaryDirectory disabled
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 = "26214400"
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"
DisableCache disabled
VirusEvent disabled
ExitOnOOM disabled
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
AllowSupplementaryGroups disabled
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
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
PartitionIntersection disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
ForceToDisk disabled
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "10"
MaxFiles = "10000"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
MaxZipTypeRcg = "1048576"
MaxPartitions = "50"
MaxIconsPE = "100"
ScanOnAccess disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeUID disabled
OnAccessMaxFileSize = "5242880"
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled

Config file: freshclam.conf
---------------------------
StatsHostID disabled
StatsEnabled disabled
StatsTimeout disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
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"
PrivateMirror disabled
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
DatabaseCustomURL 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 disabled
Bytecode = "yes"

Config file: clamav-milter.conf
-------------------------------
LogFile = "/var/log/clamav/clamav-milter.log"
LogFileUnlock disabled
LogFileMaxSize = "1048576"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile = "/var/run/clamav/clamav-milter.pid"
TemporaryDirectory = "/tmp"
FixStaleSocket = "yes"
MaxThreads = "10"
ReadTimeout = "120"
Foreground disabled
User = "clamav"
AllowSupplementaryGroups = "yes"
MaxFileSize = "26214400"
ClamdSocket = "unix:/var/run/clamav/clamd.ctl"
MilterSocket = "/var/run/clamav/clamav-milter.ctl"
MilterSocketGroup = "clamav"
MilterSocketMode = "666"
LocalNet disabled
OnClean = "Accept"
OnInfected = "Quarantine"
OnFail = "Defer"
RejectMsg disabled
AddHeader = "Replace"
ReportHostname disabled
VirusAction disabled
Chroot disabled
Whitelist disabled
SkipAuthenticated disabled
LogInfected = "Off"
LogClean = "Off"
SupportMultipleRecipients disabled

Software settings
-----------------
Version: 0.98.5
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 BZIP2 LIBXML2 JSON JIT

Database information
--------------------
Database directory: /var/lib/clamav
main.cvd: version 55, sigs: 2424225, built on Tue Sep 17 16:57:28 2013
daily.cvd: version 20063, sigs: 1324962, built on Fri Feb 13 18:53:55 2015
bytecode.cvd: version 246, sigs: 42, built on Thu Feb 12 22:13:36 2015
Total number of signatures: 3749229

Platform information
--------------------
uname: Linux 3.2.0-4-486 #1 Debian 3.2.65-1+deb7u1 i686
OS: linux-gnu, ARCH: i386, CPU: i486
Full OS version: Debian GNU/Linux 7.8 (wheezy)
zlib version: 1.2.7 (1.2.7), compile flags: 55
Triple: i386-pc-linux-gnu
CPU: corei7-avx, Little-endian
platform id: 0x0a114f4f0404070201040702

Build information
-----------------
GNU C: 4.7.2 (4.7.2)
GNU C++: 4.7.2 (4.7.2)
CPPFLAGS: -D_FORTIFY_SOURCE=2
CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
CXXFLAGS: 
LDFLAGS: -Wl,-z,relro
Configure: '--build=i486-linux-gnu' '--prefix=/usr' '--includedir=/usr/include' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib/clamav' '--disable-maintainer-mode' '--disable-dependency-tracking' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'LDFLAGS=-Wl,-z,relro' '--with-dbdir=/var/lib/clamav' '--sysconfdir=/etc/clamav' '--disable-clamav' '--disable-unrar' '--enable-milter' '--enable-dns-fix' '--with-libjson' '--with-gnu-ld' '--with-system-tommath' '--without-included-ltdl' '-with-system-llvm=/usr/bin/llvm-config' 'build_alias=i486-linux-gnu'
sizeof(void*) = 4
Engine flevel: 79, dconf: 79

--- data dir ---
total 95692
-rw-r--r-- 1 clamav clamav    68662 Feb 14 14:17 bytecode.cvd
-rw-r--r-- 1 clamav clamav 33191317 Feb 14 14:17 daily.cvd
-rw-r--r-- 1 clamav clamav 64720632 Feb 14 14:16 main.cvd
-rw------- 1 clamav clamav      104 Feb 14 15:17 mirrors.dat

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

Kernel: Linux 3.2.0-4-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clamav-milter depends on:
ii  adduser                         3.113+nmu3
ii  clamav-base                     0.98.5+dfsg-0+deb7u2
ii  clamav-freshclam [clamav-data]  0.98.5+dfsg-0+deb7u2
ii  debconf [debconf-2.0]           1.5.49
ii  dpkg                            1.16.15
ii  libc6                           2.13-38+deb7u7
ii  libjson0                        0.10-1.2
ii  libmilter1.0.1                  8.14.4-4
ii  libssl1.0.0                     1.0.1e-2+deb7u14
ii  logrotate                       3.8.1-4
ii  lsb-base                        4.1+Debian8+deb7u1
ii  procps                          1:3.3.3-3
ii  ucf                             3.0025+nmu3

Versions of packages clamav-milter recommends:
ii  clamav-daemon  0.98.5+dfsg-0+deb7u2

Versions of packages clamav-milter suggests:
pn  clamav-docs  <none>
pn  daemon       <none>

-- debconf information:
* clamav-milter/LogFile: /var/log/clamav/clamav-milter.log
* clamav-milter/ReadTimeout: 120
* clamav-milter/AddGroups:
* clamav-milter/LogFileMaxSize: 1M
* clamav-milter/LogSyslog: false
* clamav-milter/MilterSocket: /var/spool/postfix/var/run/clamav/clamav-milter.ctl
* clamav-milter/OnFail: Defer
* clamav-milter/LocalNet:
* clamav-milter/OnInfected: Quarantine
* clamav-milter/debconf: true
* clamav-milter/LogTime: true
* clamav-milter/RejectMsg:
* clamav-milter/TemporaryDirectory: /tmp
* clamav-milter/LogRotate: true
* clamav-milter/SupportMultipleRecipients: false
* clamav-milter/MilterSocketMode: 666
* clamav-milter/User: clamav
* clamav-milter/LogFacility: LOG_LOCAL6
* clamav-milter/ClamdSocket: unix:/var/run/clamav/clamd.ctl
* clamav-milter/MilterSocketGroup: clamav
* clamav-milter/LogInfected: Off
* clamav-milter/MaxFileSize: 25
* clamav-milter/PidFile: /var/run/clamav/clamav-milter.pid
* clamav-milter/FixStaleSocket: true
* clamav-milter/LogClean: Off
* clamav-milter/Foreground: false
* clamav-milter/LogFileUnlock: false
* clamav-milter/AddHeader: Replace
* clamav-milter/Chroot:
* clamav-milter/LogVerbose: false
* clamav-milter/Whitelist:



More information about the Pkg-clamav-devel mailing list