Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: SELinux is preventing /usr/sbin/collectd from nlmsg_read access on the netlink_tcpdiag_socket . ***** Plugin catchall (100. confidence) suggests *************************** If you believe that collectd should be allowed nlmsg_read access on the netlink_tcpdiag_socket 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:system_r:collectd_t:s0 Target Objects [ netlink_tcpdiag_socket ] Source collectd Source Path /usr/sbin/collectd Port <Unknown> Host hydra.ellipsis.cx Source RPM Packages collectd-5.2.0-1.fc18.x86_64 Target RPM Packages Policy RPM selinux-policy-3.11.1-92.fc18.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name hydra.ellipsis.cx Platform Linux hydra.ellipsis.cx 3.8.11-200.fc18.x86_64 #1 SMP Wed May 1 19:44:27 UTC 2013 x86_64 x86_64 Alert Count 13 First Seen 2013-05-06 14:29:45 CEST Last Seen 2013-05-06 16:30:45 CEST Local ID 54e8b0f2-debb-4a3e-8659-4fbe43fa913d Raw Audit Messages type=AVC msg=audit(1367850645.514:7279): avc: denied { nlmsg_read } for pid=31216 comm="collectd" scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:system_r:collectd_t:s0 tclass=netlink_tcpdiag_socket type=SYSCALL msg=audit(1367850645.514:7279): arch=x86_64 syscall=sendmsg success=no exit=EACCES a0=6 a1=7f098a90ad60 a2=0 a3=7f098a90aad0 items=0 ppid=1 pid=31216 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=collectd exe=/usr/sbin/collectd subj=system_u:system_r:collectd_t:s0 key=(null) Hash: collectd,collectd_t,collectd_t,netlink_tcpdiag_socket,nlmsg_read audit2allow #============= collectd_t ============== allow collectd_t self:netlink_tcpdiag_socket nlmsg_read; audit2allow -R require { type collectd_t; class netlink_tcpdiag_socket nlmsg_read; } #============= collectd_t ============== allow collectd_t self:netlink_tcpdiag_socket nlmsg_read; Version-Release number of selected component (if applicable): selinux-policy-3.11.1-92.fc18.noarch How reproducible: Always. Steps to Reproduce: 1. Enable the tcpconns plugin of collectd. Actual results: SELinux denial. Expected results: No denial.
a0aae5847638e46e0de9ca009b7ba790f476462d fixes this in git.
back ported.
selinux-policy-3.11.1-108.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-108.fc18
Package selinux-policy-3.11.1-108.fc18: * should fix your issue, * was pushed to the Fedora 18 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.11.1-108.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-23716/selinux-policy-3.11.1-108.fc18 then log in and leave karma (feedback).
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
selinux-policy-3.11.1-108.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.