Fixed clamav logging error

By gill, 10 December, 2014

service clamd start
Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
ERROR: Can't initialize the internal logger
[FAILED]

# grep clam /etc/selinux/targeted/contexts/files/file_contexts

/var/log/clamav.* system_u:object_r:antivirus_log_t:s0

# semanage fcontext -a -t antivirus_log_t "/var/log/clamav(/.*)?"
# restorecon -R /var/log/clamav
# chown clam:clam /var/log/clamav *log

Private
No