Bug 877140 - 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…?)
Summary: SELinux is preventing firewalld from 'create' accesses on the udp_socket . (I...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aad43653d4ec092a08ad57d56e6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-15 19:26 UTC by Bruce-Robert Pocock
Modified: 2012-11-16 16:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-16 16:51:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-15 19:26 UTC, Bruce-Robert Pocock
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-15 19:26 UTC, Bruce-Robert Pocock
no flags Details

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;


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