[Pkg-clamav-devel] Bug#917648: clamav-freshclam: doesn't properly clean up temporary files, consumes all disk

Witold Baryluk witold.baryluk at gmail.com
Wed Jan 9 08:01:47 GMT 2019


Package: clamav-freshclam
Version: 0.100.2+dfsg-2
Followup-For: Bug #917648


I update my system to latest testing, and the freshclam version is the
same as in unstable, still the same issues.


Here is dmesg output for the latest run:

[129772.521856] audit: type=1400 audit(1547018290.209:137): apparmor="DENIED" operation="open" info="Failed name lookup - disconnected path" error=-13 profile="/usr/bin/freshclam" name="rw/var/lib/clamav/clamav-04b5173347cb0c1d9e2ea3e4368bb16e.tmp/clamav-518334e079d58dabbb7a3fab5d785ae3.tmp" pid=1788 comm="freshclam" requested_mask="r" denied_mask="r" fsuid=110 ouid=110
[129772.521920] audit: type=1400 audit(1547018290.209:138): apparmor="DENIED" operation="open" info="Failed name lookup - disconnected path" error=-13 profile="/usr/bin/freshclam" name="rw/var/lib/clamav/clamav-04b5173347cb0c1d9e2ea3e4368bb16e.tmp/clamav-518334e079d58dabbb7a3fab5d785ae3.tmp" pid=1788 comm="freshclam" requested_mask="r" denied_mask="r" fsuid=110 ouid=110
[129772.521952] audit: type=1400 audit(1547018290.209:139): apparmor="DENIED" operation="open" info="Failed name lookup - disconnected path" error=-13 profile="/usr/bin/freshclam" name="rw/var/lib/clamav/clamav-04b5173347cb0c1d9e2ea3e4368bb16e.tmp" pid=1788 comm="freshclam" requested_mask="r" denied_mask="r" fsuid=110 ouid=110


It appears this is somehow related to overlay or tmpfs

tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=6590668k,mode=755)
/dev/sda1 on /run/live/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/loop0 on /run/live/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /run/live/overlay type tmpfs (rw,noatime,mode=755)
overlay on / type overlay (rw,noatime,lowerdir=/run/live/rootfs/filesystem.squashfs/,upperdir=/run/live/overlay/rw,workdir=/run/live/overlay/work)
tmpfs on /usr/lib/live/mount type tmpfs (rw,nosuid,noexec,relatime,size=6590668k,mode=755)
/dev/sda1 on /usr/lib/live/mount/medium type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/loop0 on /usr/lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime)
tmpfs on /usr/lib/live/mount/overlay type tmpfs (rw,noatime,mode=755)




-- Package-specific info:
--- configuration ---
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package

DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav
DNSDatabaseInfo current.cvd.clamav.net
ConnectTimeout 30
ReceiveTimeout 30
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
SafeBrowsing false
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net

--- data dir ---
total 167852
-rw-r--r-- 1 clamav clamav    199693 Jan  7 20:16 bytecode.cvd
drwx------ 3 clamav clamav        60 Jan  8 23:17 clamav-034a5cf47b07a301e154a4c78e938556.tmp
drwx------ 3 clamav clamav        60 Jan  8 07:16 clamav-045e31163f2e6c13fd48c29516e37af0.tmp
drwx------ 3 clamav clamav        60 Jan  9 07:18 clamav-04b5173347cb0c1d9e2ea3e4368bb16e.tmp
drwx------ 3 clamav clamav        60 Jan  8 00:16 clamav-109bf0408f7ab155e2d0b19c0aac56b4.tmp
drwx------ 3 clamav clamav        60 Jan  8 15:16 clamav-1b371db04116f69873981b20a859ef04.tmp
drwx------ 3 clamav clamav        60 Jan  8 20:17 clamav-1d581117d3cab8725aaa93118d0da545.tmp
drwx------ 3 clamav clamav        60 Jan  7 23:15 clamav-2850a872b7cbae0140a144f261637e50.tmp
drwx------ 3 clamav clamav        60 Jan  8 18:17 clamav-298007baec8842efd7eed387b1452010.tmp
drwx------ 3 clamav clamav        60 Jan  8 21:17 clamav-2b1a5e7b747611978a258cddab2395bb.tmp
drwx------ 2 clamav clamav        40 Jan  7 20:15 clamav-2b68b9bbe5c90d4858db70263f7787bc.tmp
drwx------ 2 clamav clamav        40 Jan  7 21:15 clamav-4130097245a7c3482e4f3e65fe940a40.tmp
drwx------ 3 clamav clamav        60 Jan  9 01:17 clamav-43a3c27a140e218632a8365a5dc18724.tmp
drwx------ 3 clamav clamav        60 Jan  8 06:16 clamav-44e9c976a8a5c8c21bfe92f0f4e8202a.tmp
drwx------ 3 clamav clamav        60 Jan  8 02:16 clamav-483b1109d3544c8651d24a44b9bdd5e5.tmp
drwx------ 3 clamav clamav        60 Jan  8 11:16 clamav-4cb2f409b8c90581a88e58268b527030.tmp
drwx------ 2 clamav clamav        40 Jan  7 20:16 clamav-5eaa98658c7e0d82e2b438a808bad251.tmp
drwx------ 3 clamav clamav        60 Jan  8 22:17 clamav-5f93dc3fcb054175a020bb01b05be21a.tmp
drwx------ 3 clamav clamav        60 Jan  8 08:16 clamav-688ac11da8918075282b1eb430b7aedd.tmp
drwx------ 3 clamav clamav        60 Jan  9 06:18 clamav-6da788c3530a8842f83b173bdc929740.tmp
drwx------ 3 clamav clamav        60 Jan  9 03:17 clamav-6f7bc87124603bc53d8dc6bd493b2a47.tmp
drwx------ 3 clamav clamav        60 Jan  8 17:17 clamav-7315b16779b16e409dce0057fc54796b.tmp
drwx------ 3 clamav clamav        60 Jan  8 01:16 clamav-75a542833f18f25d22a80945a37b903f.tmp
drwx------ 3 clamav clamav        60 Jan  9 04:17 clamav-75afd7715aa9d9dc3a34c4d3c6fd929d.tmp
drwx------ 3 clamav clamav        60 Jan  8 19:17 clamav-80582df62ac173c2bfd7889baa8a2218.tmp
drwx------ 3 clamav clamav        60 Jan  8 10:16 clamav-97121cab1f4e672c233791828bb59830.tmp
drwx------ 3 clamav clamav        60 Jan  9 00:17 clamav-a056c8a7f01780c58ba4fc46d509793f.tmp
drwx------ 3 clamav clamav        60 Jan  9 05:18 clamav-a170a0529aac2a2124e358b653319cd8.tmp
drwx------ 3 clamav clamav        60 Jan  8 05:16 clamav-a7314dd916ebe666e5b1a5447122d344.tmp
drwx------ 3 clamav clamav        60 Jan  8 12:16 clamav-ad19802fc87fb6e1a5dfd0c1f92f00b5.tmp
drwx------ 3 clamav clamav        60 Jan  8 04:16 clamav-aee18879b717e443e719d3d917723eca.tmp
drwx------ 2 clamav clamav        40 Jan  7 20:15 clamav-b325108329d46b9d3e7e9ad6939954b2.tmp
drwx------ 2 clamav clamav        40 Jan  7 22:15 clamav-b4b16ddd0751a0397b643626f5c10ea3.tmp
drwx------ 3 clamav clamav        60 Jan  8 16:17 clamav-b98e0248eb3051852ec632469f655596.tmp
drwx------ 3 clamav clamav        60 Jan  8 03:16 clamav-c3e65ef1d16c4af82f91d25acbf21150.tmp
drwx------ 2 clamav clamav        40 Jan  7 19:15 clamav-da59442bed153265dc961cacb7bb2b81.tmp
drwx------ 3 clamav clamav        60 Jan  8 14:16 clamav-dba721e9a85a165094b4a6d99905aa66.tmp
drwx------ 3 clamav clamav        60 Jan  9 02:17 clamav-deef5fedc79b4ee3714c4c346efb8076.tmp
drwx------ 3 clamav clamav        60 Jan  8 13:16 clamav-e958d419c58c956f6b9f55eae3c944d8.tmp
drwx------ 3 clamav clamav        60 Jan  8 09:16 clamav-f7d166e7a1a76116b730f9c62511c7a8.tmp
-rw-r--r-- 1 clamav clamav  53776806 Jan  7 20:16 daily.cvd
-rw-r--r-- 1 clamav clamav 117892267 Jan  7 20:16 main.cvd
-rw------- 1 clamav clamav       520 Jan  9 07:18 mirrors.dat

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages clamav-freshclam depends on:
ii  clamav-base            0.100.2+dfsg-2
ii  debconf [debconf-2.0]  1.5.69
ii  dpkg                   1.19.2
ii  libc6                  2.28-2
ii  libclamav7             0.100.2+dfsg-2
ii  libssl1.1              1.1.1a-1
ii  logrotate              3.14.0-4
ii  lsb-base               10.2018112800
ii  procps                 2:3.3.15-2
ii  ucf                    3.0038+nmu1
ii  zlib1g                 1:1.2.11.dfsg-1

clamav-freshclam recommends no packages.

Versions of packages clamav-freshclam suggests:
ii  apparmor     2.13.2-3
pn  clamav-docs  <none>

-- debconf information:
  clamav-freshclam/proxy_user:
  clamav-freshclam/NotifyClamd: true
  clamav-freshclam/Bytecode: true
  clamav-freshclam/LogRotate: true
  clamav-freshclam/update_interval: 24
  clamav-freshclam/internet_interface:
  clamav-freshclam/local_mirror: db.local.clamav.net
  clamav-freshclam/SafeBrowsing: false
  clamav-freshclam/PrivateMirror:
  clamav-freshclam/http_proxy:
  clamav-freshclam/autoupdate_freshclam: daemon



More information about the Pkg-clamav-devel mailing list