libreport version: 2.0.10 executable: /usr/bin/python2.7 hashmarkername: setroubleshoot kernel: 3.4.4-5.fc17.x86_64 time: Fri 20 Jul 2012 05:15:00 AM JST description: :SELinux is preventing /usr/sbin/squid from 'read' accesses on the file /var/log/squid/cache.log. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that squid should be allowed read access on the cache.log 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 squid /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:squid_t:s0 :Target Context system_u:object_r:var_log_t:s0 :Target Objects /var/log/squid/cache.log [ file ] :Source squid :Source Path /usr/sbin/squid :Port <Unknown> :Host (removed) :Source RPM Packages squid-3.2.0.16-1.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-137.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed).Tahri 3.4.4-5.fc17.x86_64 #1 SMP Thu : Jul 5 20:20:59 UTC 2012 x86_64 x86_64 :Alert Count 35 :First Seen Fri 20 Jul 2012 04:57:50 AM JST :Last Seen Fri 20 Jul 2012 05:13:34 AM JST :Local ID 603a4628-61dc-4147-911e-d9ffebee13cd : :Raw Audit Messages :type=AVC msg=audit(1342728814.595:277439): avc: denied { read } for pid=11304 comm="squid" name="cache.log" dev="md114" ino=151 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file : : :type=SYSCALL msg=audit(1342728814.595:277439): arch=x86_64 syscall=open success=no exit=EACCES a0=7fa92b036130 a1=442 a2=1b6 a3=238 items=0 ppid=1 pid=11304 auid=4294967295 uid=0 gid=23 euid=23 suid=0 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm=squid exe=/usr/sbin/squid subj=system_u:system_r:squid_t:s0 key=(null) : :Hash: squid,squid_t,var_log_t,file,read : :audit2allowunable to open /sys/fs/selinux/policy: Permission denied : : :audit2allow -Runable to open /sys/fs/selinux/policy: Permission denied : :
# matchpathcon /var/log/squid/cache.log /var/log/squid/cache.log system_u:object_r:squid_log_t:s Execute: # restorecon -R -v /var/log/squid/cache.log
Actually execute # restorecon -R -v /var/log
*** Bug 841673 has been marked as a duplicate of this bug. ***
*** Bug 841674 has been marked as a duplicate of this bug. ***
*** Bug 841675 has been marked as a duplicate of this bug. ***