[CentOS] How to build clamav SRPM and RPM with calmav tarbal - CentOS 5

Jim Perrin jperrin at gmail.com
Mon Jun 25 13:16:23 UTC 2007

On 6/25/07, Indunil Jayasooriya <indunil75 at gmail.com> wrote:

> I installed it fro Dag. But it gace erros. Then I desabled selinux. Then ,
> It worked. But i do not want to leave selinux disabled.
> That's why. I am trying to build it.

Rebuilding the code won't solve the problem. You'll have to modify the
selinux rules so that these actions are allowed. For Centos5 and rhel5
this is pretty easy.

1. Enable selinux in permissive mode, and capture the selinux error
messages. They'll likely be in /var/log/audit/audit.log or
2. Run audit2allow -i selinux.log -M localpolicy
3. Next you load the module you just created with 'semodule -i localpolicy.pp'

Lather, rinse, repeat.

During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

More information about the CentOS mailing list