From nobody Fri Dec 02 14:27:45 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NNwJd5sR7z4jbCZ for ; Fri, 2 Dec 2022 14:27:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NNwJd3h0Gz3MLq for ; Fri, 2 Dec 2022 14:27:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669991265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4efa4y1uP0TP7SKZgqApPWOKYgc5Pn+75o+xdhOZLlo=; b=is0HNhpMp3FtsX3FGIcEIHpljDmqpB38UKbxuVQGb8cz2DKTX2OaNBZKIoAp5y3PBdM1J9 VuhpqENjaFypaWQje3n8BInWt7LqWQstNXF0Pnlo6U1gd7bTF46NGmJtjG/9MOabUIcatj +fJId/EugVEZDS0NqUBAXk4CpCDWuKsLwdKzrs3zQXy7sS7EJeVyKXfqs4BLAWG2nKDZtT H2ONxh36irRhObCyDwbVFW3SZFWKYrsYdE+3rxPkieQmyo6Z4K2/z1FKiK7mR2u7S0mN6U XOtuYmwF0386i+KhNcye9fpAh+O1OPgj7qoNFqqhq4RHIXZtJx0RqLJATmIbag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669991265; a=rsa-sha256; cv=none; b=Y9XxNOXbrm5g+3qP/HE9SB4vuCLreHXFEbuvp7RLhGKiv7GBAeLURAGBwljtYKP8jt1lEE 2Wqzm3Fp4DXkQVDwn95kx+ZD62a072E1rUMZz30ccLneCySH2kFLg3Gh4iaItUafTQfYlj O59jmY5tcVhyFrMTV97jsYOogQzEoXmSpzY27e9ykpjIj317QIirvbNK2910Q/uDPEnoc9 bKmB8A9a+WNefTH3NJHmwesT9om2cUen9sTjCQ49wYx7+Pho+j0MklM1acHjRlzt/3VhFe y1R9AurqVHkB6tZA9EuppEilLUkjI/XPJW8gxBHR4XcGnGkz+0+jskF3WYIAGw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NNwJd2hdZzJrH for ; Fri, 2 Dec 2022 14:27:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B2ERjq7034031 for ; Fri, 2 Dec 2022 14:27:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B2ERjum034030 for ports-bugs@FreeBSD.org; Fri, 2 Dec 2022 14:27:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268069] security/clamav: 1.0.0 does no work with cld and cvd files Date: Fri, 02 Dec 2022 14:27:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fsbruva@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268069 --- Comment #13 from fsbruva@yahoo.com --- I am thinking this is some kind of latent dependency issue. I was able to install, update and run clamav 1.0.0 in another 12.3-RELEASE amd64 jail on = the same machine. Differences are the successful jail never had clamav before, = and different ports installed. I will look through the clamav build logs to see= if I can spot differences. (In reply to Yasuhiro Kimura from comment #9) > Would you please provide the result of `sha256 /var/db/clamav/*` ? daily.cvd version: 26737 main.cld version: 62 bytecode.cld version: 333 SHA256 (/var/db/clamav/bytecode.cvd) =3D aa5222822ba8b87cd319d9b00ef82e93b85f8c1c134b4465cad095368a0ab8b1 SHA256 (/var/db/clamav/daily.cvd) =3D fc5e16e3862d39b9b219469cc902e7e7fbb0f70f02a86ac050ac2db08cbb1557 SHA256 (/var/db/clamav/freshclam.dat) =3D a6343045528f703d92f40b3d7f421d01db71c6252b1f4efb69ef51486804b82d SHA256 (/var/db/clamav/main.cvd) =3D 9520cc7827ddc5267684f2c5c7044cf2df1f62606ca81402cbeae12183763a90 user@machine:/var/db/clamav # service clamav-clamd start Starting clamav_clamd. LibClamAV Error: Can't load /var/db/clamav/daily.cvd: Can't verify database integrity LibClamAV Error: cli_loaddbdir: error loading database /var/db/clamav/daily= .cvd ERROR: Can't verify database integrity /usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd I tried running freshclam 1.0.0, and got this: user@machine:/var/db/clamav # freshclam ClamAV update process started at Fri Dec 2 08:58:50 2022 daily database available for update (local version: 26737, remote version: 26738) Current database is 1 version behind. Downloading database patch # 26738... WARNING: [LibClamAV] CVD verification failed for: daily.cvd ERROR: mkdir_and_chdir_for_cdiff_tmp: Can't unpack daily.cvd into /var/db/clamav/tmp.f3e98ef3c4/clamav-2e2434f3e48000b9eac28f6f03a601ac.tmp The database server doesn't have the latest patch for the daily database (version 26738). The server will likely have updated if you check again in a few hours. main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr) bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2) Note the problem with unpacking daily.cvd.=20 I have /var/db/clamav/ owned by clamav:clamav, with 755 permissions. I removed clamav 1.0.0, and re-installed 0.105.1_5. When I tried to start clamav 0.105.1 with these same files, I got: user@machine:/var/db/clamav # service clamav-clamd start Starting clamav_clamd. LibClamAV Error: Can't load /var/db/clamav/daily.cvd: Can't verify database integrity LibClamAV Error: cli_loaddbdir: error loading database /var/db/clamav/daily= .cvd ERROR: Can't verify database integrity /usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd So I ran freshclam 0.105.1, and got this: root@condor_www:/var/db/clamav # freshclam ClamAV update process started at Fri Dec 2 09:05:31 2022 daily database available for update (local version: 26737, remote version: 26738) Current database is 1 version behind. Downloading database patch # 26738... Time: 0.3s, ETA: 0.0s [=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D>] 8.52KiB/8.52KiB Testing database: '/var/db/clamav/tmp.6c1cb80df0/clamav-e65ae6b9ff22c449bf0ae6fd199bcf07.tmp-= daily.cld' ... Database test passed. daily.cld updated (version: 26738, sigs: 2013306, f-level: 90, builder: raynman) main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr) bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2) File hashes are now: SHA256 (/var/db/clamav/bytecode.cvd) =3D aa5222822ba8b87cd319d9b00ef82e93b85f8c1c134b4465cad095368a0ab8b1 SHA256 (/var/db/clamav/daily.cld) =3D 0aefe922fbe12376d83d8b3c0e59dcdb75c77588bd790b03879de148ecfdae6f SHA256 (/var/db/clamav/freshclam.dat) =3D a6343045528f703d92f40b3d7f421d01db71c6252b1f4efb69ef51486804b82d SHA256 (/var/db/clamav/main.cvd) =3D 9520cc7827ddc5267684f2c5c7044cf2df1f62606ca81402cbeae12183763a90 And clamav 0.105.1 started successfully. Stop clamav service, deinstalled clamav 0.105, built clamav 1.0.0 from ports, installed, and saw same error = with starting clamav-clamd service. --=20 You are receiving this mail because: You are the assignee for the bug.=