Hide Forgot
SELinux is preventing /usr/sbin/clamd from 'open' accesses on the file /var/log/clamd.exim. ***** Plugin restorecon (99.5 confidence) suggests ************************* If you want to fix the label. /var/log/clamd.exim default label should be clamd_var_log_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/log/clamd.exim ***** Plugin catchall (1.49 confidence) suggests *************************** If you believe that clamd should be allowed open access on the clamd.exim file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep clamd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:clamd_t:s0 Target Context unconfined_u:object_r:var_log_t:s0 Target Objects /var/log/clamd.exim [ file ] Source clamd Source Path /usr/sbin/clamd Port <Unknown> Host (removed) Source RPM Packages clamav-server-0.97.2-1500.fc15 Target RPM Packages exim-clamav-4.76-2.fc15 Policy RPM selinux-policy-3.9.16-39.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.40.6-0.fc15.x86_64 #1 SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Sun 09 Oct 2011 04:31:33 PM BST Last Seen Sun 09 Oct 2011 04:31:33 PM BST Local ID 5ae4e9dd-3cb9-4b18-8df2-9e2603265a98 Raw Audit Messages type=AVC msg=audit(1318174293.414:593): avc: denied { open } for pid=6800 comm="clamd" name="clamd.exim" dev=dm-1 ino=393968 scontext=system_u:system_r:clamd_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file type=SYSCALL msg=audit(1318174293.414:593): arch=x86_64 syscall=open success=no exit=EACCES a0=e7c470 a1=441 a2=1b6 a3=7fffde7a2a70 items=0 ppid=6797 pid=6800 auid=4294967295 uid=93 gid=93 euid=93 suid=93 fsuid=93 egid=93 sgid=93 fsgid=93 tty=(none) ses=4294967295 comm=clamd exe=/usr/sbin/clamd subj=system_u:system_r:clamd_t:s0 key=(null) Hash: clamd,clamd_t,var_log_t,file,open audit2allow #============= clamd_t ============== allow clamd_t var_log_t:file open; audit2allow -R #============= clamd_t ============== allow clamd_t var_log_t:file open; This is after reboot and fresh uninstall/reinstall of exim-clamav; default config file with no changes specifies that this is where clamd should log. Running "restorecon" as above fixes it.
/var/log/clamd.exim is mislabled. # restorecon -R -v /var/log/clamd.exim should fix it. It looks like you started clamd by hand without using a service script.