I would suggest, after the build is completed, have clamav scan the sources, as part of the build section of the RPM spec. Once the RPM is built, make sure to GPG sign it and also publish your public key so GPG signature checking can be enabled. In this way, you satisfy the AV scan requirement on the package contents before packaging, and you sign the package during build to help ensure it hasn't been tampered with post build.
Obviously, you need to go through all the rigamarol to ensure signature checking is enabled on the destination devices, and that your key is imported and trusted (and you will want to sign your repo if you use one as well, and enable repo signature checking), and also ensure that unsigned RPMs cannot be installed.
Gregory Young
-----Original Message----- From: CentOS-devel centos-devel-bounces@centos.org On Behalf Of Fred Smith Sent: June 11, 2019 9:45 PM To: The CentOS developers mailing list. centos-devel@centos.org Subject: Re: [CentOS-devel] virusscan a RPM file?
On Tue, Jun 11, 2019 at 07:00:03PM -0400, James Cassell wrote:
On Tue, Jun 11, 2019, at 6:52 PM, Fred Smith wrote:
Hi all!
At work we've developed a package that we ship as an RPM. We also have a requirement to virusscan everything we ship.
The company uses AVG antivirus on Windows. It can find and scan all the files in a zip file, but it scans only the RPM itself, not its contents.
Anybody out thre know if RH (or Centos) has any tools for scanning contentss of files such as RPM that have other things embedded inside them?
EPEL has clamav. Red Hat maintains that anti-virus is unnecessary, so does not ship a solution.
Yeah, I don't disagree. Unfortunately someone up high in the company has caved to customer pressure, and it's written into contracts. :( :( :(
Best thing we've been able to come up with is to do rpm-to-cpio then virusscan the rpm and the cpio file on windows. Since I wasn't present when that was done, I don't know if the scanner actually noticed the files in the cpio archive.
Could move the entire tree of things that will become the rpm to windows and run the scanner on that. but symbolic links will be a problem on Winders.
-- ---- Fred Smith -- fredex@fcshome.stoneham.ma.us ----------------------------- "For the word of God is living and active. Sharper than any double-edged sword, it penetrates even to dividing soul and spirit, joints and marrow; it judges the thoughts and attitudes of the heart." ---------------------------- Hebrews 4:12 (niv) ------------------------------ _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel