Bug 903392

Summary: SELinux is preventing /usr/sbin/NetworkManager from 'create' accesses on the rawip_socket .
Product: [Fedora] Fedora Reporter: Dario Castellarin <req1348>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4fe2aeeeca3e104d961306469d38a8940824deed729becb6cb0390027a6cf6dc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 02:23:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dario Castellarin 2013-01-23 21:29:13 UTC
Description of problem:
I didn't really do anything...
SELinux is preventing /usr/sbin/NetworkManager from 'create' accesses on the rawip_socket .

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

If si crede che NetworkManager dovrebbe avere possibilità di accesso create sui  rawip_socket in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per il momento eseguendo:
# grep NetworkManager /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:system_r:NetworkManager_t:s0
Target Objects                 [ rawip_socket ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-0.9.7.0-12.git20121004.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-203.fc18.x86_64 #1 SMP Tue
                              Jan 22 23:50:00 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-23 22:26:09 CET
Last Seen                     2013-01-23 22:26:09 CET
Local ID                      9729773b-db16-422c-a3c3-f08fc1f0ffe8

Raw Audit Messages
type=AVC msg=audit(1358976369.677:367): avc:  denied  { create } for  pid=685 comm="NetworkManager" scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:system_r:NetworkManager_t:s0 tclass=rawip_socket


type=SYSCALL msg=audit(1358976369.677:367): arch=x86_64 syscall=socket success=no exit=EACCES a0=a a1=3 a2=3a a3=30303237206e6920 items=0 ppid=1 pid=685 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=NetworkManager exe=/usr/sbin/NetworkManager subj=system_u:system_r:NetworkManager_t:s0 key=(null)

Hash: NetworkManager,NetworkManager_t,NetworkManager_t,rawip_socket,create

audit2allow

#============= NetworkManager_t ==============
allow NetworkManager_t self:rawip_socket create;

audit2allow -R

#============= NetworkManager_t ==============
allow NetworkManager_t self:rawip_socket create;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.4-203.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-24 08:55:35 UTC
Fixed in selinux-policy-3.11.1-74.fc18

Comment 2 Fedora Update System 2013-01-31 13:18:06 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 3 Fedora Update System 2013-02-01 16:38:40 UTC
Package selinux-policy-3.11.1-74.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-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-08 02:23:18 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.