Bug 1105729 - SELinux is preventing /usr/bin/totem-video-thumbnailer from 'name_connect' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/bin/totem-video-thumbnailer from 'name_connect' ac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:263c73ad00f0bae9ea93eda27cb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-06 20:24 UTC by striker.pena
Modified: 2014-06-26 01:53 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-171.fc20
Clone Of:
Environment:
Last Closed: 2014-06-26 01:53:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description striker.pena 2014-06-06 20:24:33 UTC
Description of problem:
I was using ssh to this box. tried to play media.
SELinux is preventing /usr/bin/totem-video-thumbnailer from 'name_connect' accesses on the tcp_socket .

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

If you believe that totem-video-thumbnailer should be allowed name_connect access on the  tcp_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-video-thu /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xserver_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        totem-video-thu
Source Path                   /usr/bin/totem-video-thumbnailer
Port                          6011
Host                          (removed)
Source RPM Packages           totem-3.10.1-1.fc20.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-166.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.14.5-200.fc20.i686 #1 SMP Mon
                              Jun 2 15:03:19 UTC 2014 i686 i686
Alert Count                   1
First Seen                    2014-06-06 13:04:17 PDT
Last Seen                     2014-06-06 13:04:17 PDT
Local ID                      f2bca98d-1657-49fb-9b71-3b4c001d0770

Raw Audit Messages
type=AVC msg=audit(1402085057.365:875): avc:  denied  { name_connect } for  pid=10926 comm="totem-video-thu" dest=6011 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xserver_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1402085057.365:875): arch=i386 syscall=socketcall success=yes exit=0 a0=3 a1=bfb3b1e0 a2=b6399000 a3=9f063b0 items=0 ppid=10882 pid=10926 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=pts1 ses=29 comm=totem-video-thu exe=/usr/bin/totem-video-thumbnailer subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)

Hash: totem-video-thu,thumb_t,xserver_port_t,tcp_socket,name_connect

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.5-200.fc20.i686
type:           libreport

Potential duplicate: bug 845530

Comment 1 Daniel Walsh 2014-06-09 11:42:28 UTC
5b694413d1d3d28f674a1f7aaa21cb1e7ecffae3 allows this in git.

We are allowing it to connect to the local xserver, so allowing it to connect to the remote xserver makes sense.

Comment 2 Lukas Vrabec 2014-06-09 13:08:41 UTC
back ported.

Comment 3 Fedora Update System 2014-06-09 20:09:19 UTC
selinux-policy-3.12.1-167.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-167.fc20

Comment 4 Fedora Update System 2014-06-11 16:25:36 UTC
Package selinux-policy-3.12.1-167.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-167.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7240/selinux-policy-3.12.1-167.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-06-19 13:19:01 UTC
selinux-policy-3.12.1-171.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-171.fc20

Comment 6 Fedora Update System 2014-06-19 22:53:12 UTC
Package selinux-policy-3.12.1-171.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-171.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7499/selinux-policy-3.12.1-171.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-06-26 01:53:52 UTC
selinux-policy-3.12.1-171.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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