Bug 690006

Summary: SELinux is preventing /usr/bin/python from 'create' accesses on the netlink_route_socket Unknown.
Product: [Fedora] Fedora Reporter: Dawid Zamirski <dzrudy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:8128c045b4f89989333fef97c1afed8b861fde8c7425bdbd62b851b8a890f326
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-17 15:57:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dawid Zamirski 2011-03-23 00:07:54 UTC
SELinux is preventing /usr/bin/python from 'create' accesses on the netlink_route_socket Unknown.

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

If you believe that python should be allowed create access on the Unknown netlink_route_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 telepathy-sunsh /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:telepathy_sunshine_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:unconfined_r:telepathy_sunshine_t:s0-
                              s0:c0.c1023
Target Objects                Unknown [ netlink_route_socket ]
Source                        telepathy-sunsh
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-1.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.x86_64 #1
                              SMP Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   128171
First Seen                    Tue 15 Mar 2011 09:23:00 PM EDT
Last Seen                     Tue 15 Mar 2011 11:59:33 PM EDT
Local ID                      8b20d678-852f-4bf5-9d5b-9a2201894252

Raw Audit Messages
type=AVC msg=audit(1300247973.398:11836365): avc:  denied  { create } for  pid=2871 comm="telepathy-sunsh" scontext=unconfined_u:unconfined_r:telepathy_sunshine_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:telepathy_sunshine_t:s0-s0:c0.c1023 tclass=netlink_route_socket


Hash: telepathy-sunsh,telepathy_sunshine_t,telepathy_sunshine_t,netlink_route_socket,create

audit2allow

#============= telepathy_sunshine_t ==============
allow telepathy_sunshine_t self:netlink_route_socket create;

audit2allow -R

#============= telepathy_sunshine_t ==============
allow telepathy_sunshine_t self:netlink_route_socket create;

Comment 1 Daniel Walsh 2011-03-23 12:53:52 UTC
Miroslav I am adding

sysnet_dns_name_resolve(telepathy_domain)

Fixed in selinux-policy-3.9.16-7.fc15