error ClamAV daemon

Paul Howarth paul at city-fan.org
Thu Jun 8 18:09:30 UTC 2006


On Thu, 2006-06-08 at 19:22 +0200, Peter Lesterhuis wrote:
> >
> > When I boot I see this message: "ClamAV daemon: ERROR: can't open 
> > > /var/log/clamav/clamlog in append mode. Check permissions. ERROR: 
> > > problem with internal logger. Please check permissions of 
> > > /var/log/clamav/clamlog."
> > > I checked the permissions (600) and set them to 666 to be sure that the 
> > > file is writable for the owner clamav. (Shouldn't be necessary though).
> > > Still I can't start clamd.
> > > In clamav.conf the option LogFileUnlock is uncommented.
> > > I don't understand why I keep having this error.
> > > Any suggestion is wellcome.
> >   
> >
> > Do you have SELinux enabled, and if so, are there any messages with
> > "avc:  denied" in /var/log/messages or /var/log/audit/audit.log?
> >   
> Yes, I have.
> In /var/log/audit/audit.log I have this message:
> type=AVC msg=audit(1149784852.944:133): avc:  denied  { write } for  
> pid=2352 comm="freshclam" name="log" dev=tmpfs ino=6715 
> scontext=system_u:system_r:freshclam_t:s0 
> tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file
> type=SYSCALL msg=audit(1149784852.944:133): arch=40000003 syscall=102 
> success=no exit=-13 a0=3 a1=bf926000 a2=4f32aff4 a3=15 items=1 pid=2352 
> auid=4294967295 uid=46 gid=46 euid=46 suid=46 fsuid=46 egid=46 sgid=46 
> fsgid=46 comm="freshclam" exe="/usr/bin/freshclam"

Curious. The AVC seems to relate to denial of sending a syslog message,
whereas the error message seems to relate to a regular file
(/var/log/clamav/clamlog).

Are you on FC4 or FC5? Are your selinux policy packages up to date?

Paul.




More information about the fedora-list mailing list