Comment 1 for bug 473707

Revision history for this message
Scott Kitterman (kitterman) wrote :

Ran the test suite (per the package qualification process) in a karmic chroot with two errors:

 * Stopping ClamAV daemon clamd [ OK ]
 * Starting ClamAV daemon clamd [ OK ]
Skipping private tests
Test LP: #365823 (clamav-milter chowns directories to clamav) ... FAIL
Test files from clamav-testfiles ...
  clam-v2.rar... (skipped: RAR support only exists in 0.92 and earlier) ok
  clam.zip... ok
  clam.exe.bz2... ok
  clam.cab... ok
  clam.exe... ok
  clam-v3.rar... (skipped: RAR support only exists in 0.92 and earlier) ok
ok
Test clamd is listening ... ok
Passes clean files ... ok
Passes clean bzip2 ... ok
Passes clean gzip ... ok
Passes clean mbox ... ok
Passes clean RAR ... ok
Passes clean ZIP ... ok
Flags EICAR ... ok
Flags EICAR bzip2 ... ok
Flags EICAR gzip ... ok
Flags EICAR mbox ... ok
Flags EICAR mbox with corruption (CVE-2006-2406) ... ok
Flags EICAR RAR ... (skipped: RAR support only exists in 0.92 and earlier) ok
Flags EICAR ZIP ... ok
Test freshclam ... FAIL
Handle high recursion JPEG (LP# 304017) ... ok
Correctly flag ClamAV-shipped test files ...
        clamav/clam.bz2.zip ... ok
        clamav/clam.mail ... ok
        clamav/clam.exe.html ... ok
        clamav/clam.sis ... ok
        clamav/clam.tnef ... ok
        clamav/clam.d64.zip ... ok
        clamav/clam.exe.binhex ... ok
        clamav/clam.pdf ... ok
        clamav/clam.exe.szdd ... ok
        clamav/clam.exe.rtf ... ok
        clamav/clam.exe.mbox.base64 ... ok
        clamav/clam.ea06.exe ... ok
        clamav/clam.ole.doc ... ok
        clamav/clam.ppt ... ok
        clamav/clam.tar.gz ... ok
        clamav/clam.zip ... ok
        clamav/clam.exe.bz2 ... ok
        clamav/clam.cab ... ok
        clamav/clam.exe ... ok
        clamav/clam.impl.zip ... ok
        clamav/clam.exe.mbox.uu ... ok
        clamav/clam.chm ... ok
        clamav/clam.ea05.exe ... ok
        clamav/clam.arj ... ok
ok

======================================================================
FAIL: Test LP: #365823 (clamav-milter chowns directories to clamav)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-clamav.py", line 450, in test_bug365823
    self.assertTrue(uid == expected_uid, "'%s' had uid of '%d', expected '%d'" % (d, uid, expected_uid))
AssertionError: '/' had uid of '101', expected '0'

======================================================================
FAIL: Test freshclam
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-clamav.py", line 419, in test_freshclam
    self.assertTrue(rc == expected, result + report)
AssertionError: Got exit code 127
[Errno 2] No such file or directory

----------------------------------------------------------------------
Ran 19 tests in 299.262s

FAILED (failures=2)

I independently verified that freshclam works outside the chroot and that the owner of "/" is not being changed.

--------------------------------------
freshclam daemon 0.95.3 (OS: linux-gnu, ARCH: i386, CPU: i486)
ClamAV update process started at Tue Nov 3 23:09:51 2009
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
daily.cld is up to date (version: 9986, sigs: 98497, f-level: 44, builder: guitar)
--------------------------------------