Bug 819172

Summary: SELinux is preventing /usr/bin/totem from 'name_bind' accesses on the udp_socket .
Product: [Fedora] Fedora Reporter: D.S. Ljungmark <spider>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA 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:350502b15c751f9f3e41b78614473f675de6c2fb97ccf9b476ea7da4f485ca5c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-28 01:19:41 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 D.S. Ljungmark 2012-05-05 10:46:16 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.4-3.fc17.x86_64
time:           Sat 05 May 2012 12:45:55 PM CEST

description:
:SELinux is preventing /usr/bin/totem from 'name_bind' accesses on the udp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that totem should be allowed name_bind 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 totem /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                system_u:object_r:ssdp_port_t:s0
:Target Objects                 [ udp_socket ]
:Source                        totem
:Source Path                   /usr/bin/totem
:Port                          1900
:Host                          (removed)
:Source RPM Packages           totem-3.4.0-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-118.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux Waves.darkmere 3.3.4-3.fc17.x86_64 #1 SMP
:                              Wed May 2 16:16:08 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Sat 05 May 2012 12:35:56 PM CEST
:Last Seen                     Sat 05 May 2012 12:35:56 PM CEST
:Local ID                      99493bd9-e675-4ecf-812b-5d371ba453bc
:
:Raw Audit Messages
:type=AVC msg=audit(1336214156.839:232): avc:  denied  { name_bind } for  pid=23488 comm="totem" src=1900 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ssdp_port_t:s0 tclass=udp_socket
:
:
:type=SYSCALL msg=audit(1336214156.839:232): arch=x86_64 syscall=bind success=no exit=EACCES a0=1a a1=7fff5b2c09e0 a2=10 a3=7fff5b2c09dc items=0 ppid=1 pid=23488 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=5 comm=totem exe=/usr/bin/totem subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: totem,mozilla_plugin_t,ssdp_port_t,udp_socket,name_bind
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-05-07 14:56:59 UTC
I am not sure what to do with this.  Are you seeing anything break because of this?  

http://tweaks.com/windows/37087/completely-disable-universal-plug-and-play-upnp/

Unless you are seeing totem break for some reason, I think we should block this access.

Comment 2 Daniel Walsh 2012-05-07 15:03:36 UTC
Added dontaudit in selinux-policy-3.10.0-122.fc17

Comment 3 Fedora Update System 2012-05-09 15:17:07 UTC
selinux-policy-3.10.0-124.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-124.fc17

Comment 4 Fedora Update System 2012-05-17 22:57:20 UTC
Package selinux-policy-3.10.0-125.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-125.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-7953/selinux-policy-3.10.0-125.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-05-28 01:19:41 UTC
selinux-policy-3.10.0-125.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.