Bug 917281 - SELinux is preventing /usr/sbin/collectd from create access on the netlink_tcpdiag_socket
Summary: SELinux is preventing /usr/sbin/collectd from create access on the netlink_tc...
Keywords:
Status: CLOSED DUPLICATE of bug 917279
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-02 16:39 UTC by Joel Uckelman
Modified: 2013-03-04 09:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-04 09:45:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joel Uckelman 2013-03-02 16:39:05 UTC
Description of problem:

SELinux is preventing /usr/sbin/collectd from create access on the netlink_tcpdiag_socket .

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that collectd should be allowed create 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                          clio
Source RPM Packages           collectd-5.2.0-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-81.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     clio
Platform                      Linux clio 3.7.9-205.fc18.x86_64 #1 SMP Sun Feb 24
                              20:10:02 UTC 2013 x86_64 x86_64
Alert Count                   14
First Seen                    2013-03-02 18:48:18 CET
Last Seen                     2013-03-02 17:33:59 CET
Local ID                      80b735af-d38d-4440-a8dd-6cfc5abcb5c7

Raw Audit Messages
type=AVC msg=audit(1362242039.719:1950): avc:  denied  { create } for  pid=7162 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(1362242039.719:1950): arch=x86_64 syscall=socket success=no exit=EACCES a0=10 a1=3 a2=4 a3=7fa97e7f9ad0 items=0 ppid=1 pid=7162 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,create

audit2allow

#============= collectd_t ==============
allow collectd_t self:netlink_tcpdiag_socket create;

audit2allow -R

#============= collectd_t ==============
allow collectd_t self:netlink_tcpdiag_socket create;


How reproducible:

Always

Steps to Reproduce:
1. Enable the collectd tcpconns plugin.

Comment 1 Miroslav Grepl 2013-03-04 09:45:13 UTC

*** This bug has been marked as a duplicate of bug 917279 ***


Note You need to log in before you can comment on or make changes to this bug.