SELinux is preventing /usr/sbin/collectd from 'getattr' accesses on the filesystem /dev/mqueue. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that collectd should be allowed getattr access on the mqueue filesystem 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 collectd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:collectd_t:s0 Target Context system_u:object_r:tmpfs_t:s0 Target Objects /dev/mqueue [ filesystem ] Source collectd Source Path /usr/sbin/collectd Port <Unknown> Host (removed) Source RPM Packages collectd-4.10.3-2.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-38.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64 Alert Count 101 First Seen Mon 12 Sep 2011 11:44:17 PM CDT Last Seen Tue 13 Sep 2011 02:06:37 AM CDT Local ID 73b627ff-294f-4c8b-a096-37fac76e8496 Raw Audit Messages type=AVC msg=audit(1315897597.797:3006): avc: denied { getattr } for pid=1661 comm="collectd" name="/" dev=mqueue ino=7013 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem type=SYSCALL msg=audit(1315897597.797:3006): arch=x86_64 syscall=statfs success=yes exit=0 a0=7f2414006880 a1=7f242164b7d0 a2=0 a3=1 items=0 ppid=1 pid=1661 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=collectd exe=/usr/sbin/collectd subj=system_u:system_r:collectd_t:s0 key=(null) Hash: collectd,collectd_t,tmpfs_t,filesystem,getattr audit2allow #============= collectd_t ============== allow collectd_t tmpfs_t:filesystem getattr; audit2allow -R #============= collectd_t ============== allow collectd_t tmpfs_t:filesystem getattr;
Fixed in selinux-policy-3.9.16-41.fc15
Hi Miroslav. I have another 34 AVC's related to collectd, should I file them all as bugs? Or is there a more efficient way?
Hi Jeff, could you attach your compressed /var/log/audit/audit.log
Created attachment 522993 [details] /var/log/audit.log, as requested
Miroslav, Any idea when selinux-policy-3.9.16-41.fc15 will be ready? Do you think the AVC's in comment 4 will be resolved with that update as well? collectd is triggering an AVC every few seconds. I've been holding out on creating a custom policy (really because I've never done it before) but if you don't think that the update will be coming soon, I will create one.
I apologize, I missed your latest comment with your audit.log. Going to look at it.
Fixes added to selinux-policy-3.9.16-43.fc15
selinux-policy-3.9.16-48.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-48.fc15
Package selinux-policy-3.9.16-48.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-48.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16023/selinux-policy-3.9.16-48.fc15 then log in and leave karma (feedback).
selinux-policy-3.9.16-48.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.