Bug 877140

Summary: SELinux is preventing firewalld from 'create' accesses on the udp_socket . (I'm dubious as to whether firewalld should be trying to create a UDP socket…?)
Product: [Fedora] Fedora Reporter: Bruce-Robert Pocock <brpocock>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:aad43653d4ec092a08ad57d56e6256dadd573c142333597dd9e524aaf6db933f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-16 16:51:36 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Bruce-Robert Pocock 2012-11-15 19:26:48 UTC
Description of problem:
This might have been a side-effect of trying to add an mDNS-advertised printer…

Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing firewalld from 'create' accesses on the udp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that firewalld should be allowed create access on the  udp_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 firewalld /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:firewalld_t:s0
:Target Context                system_u:system_r:firewalld_t:s0
:Target Objects                 [ udp_socket ]
:Source                        firewalld
:Source Path                   firewalld
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-7.2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-4.fc17.x86_64 #1 SMP Wed Oct
:                              17 02:43:21 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    2012-10-29 10:31:49 EDT
:Last Seen                     2012-10-29 10:43:32 EDT
:Local ID                      43b5bf2f-eb0d-4b25-a3ff-88b47f2cd684
:
:Raw Audit Messages
:type=AVC msg=audit(1351521109.172:680): avc:  denied  { create } for  pid=24251 comm="firewalld" scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=udp_socket
:
:
:type=SYSCALL msg=audit(1351521109.172:680): arch=x86_64 syscall=socket success=no exit=EACCES a0=2 a1=802 a2=0 a3=1 items=0 ppid=1 pid=24251 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=firewalld exe=/usr/bin/python2.7 subj=system_u:system_r:firewalld_t:s0 key=(null)
:
:Hash: firewalld,firewalld_t,firewalld_t,udp_socket,create
:
:audit2allow
:
:#============= firewalld_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow firewalld_t self:udp_socket create;
:
:audit2allow -R
:
:#============= firewalld_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow firewalld_t self:udp_socket create;
:


Potential duplicate bug: 863687

Comment 1 Bruce-Robert Pocock 2012-11-15 19:26:50 UTC
Created attachment 645852 [details]
File: type

Comment 2 Bruce-Robert Pocock 2012-11-15 19:26:53 UTC
Created attachment 645853 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-16 16:51:36 UTC
Accouding to the report above, the fix is already their.

:#============= firewalld_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow firewalld_t self:udp_socket create;