Bug 707218

Summary: SELinux is preventing /usr/libexec/telepathy-gabble from 'write' accesses on the tcp_socket port None.
Product: [Fedora] Fedora Reporter: jeremy <jmminaz>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:6a9f367e47e11ec921bbb479e7569dd9affa1f17893a4a6ed86a6be46ac27e3d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 12:55:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description jeremy 2011-05-24 12:44:20 UTC
SELinux is preventing /usr/libexec/telepathy-gabble from 'write' accesses on the tcp_socket port None.

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

If you believe that telepathy-gabble should be allowed write access on the port None 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 telepathy-gabbl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:object_r:unlabeled_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                port None [ tcp_socket ]
Source                        telepathy-gabbl
Source Path                   /usr/libexec/telepathy-gabble
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           telepathy-gabble-0.11.8-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-13.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed Mar
                              30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Fri 22 Apr 2011 06:48:21 AM MST
Last Seen                     Fri 22 Apr 2011 06:48:25 AM MST
Local ID                      7118b5f6-b384-4cce-894b-de9fdf28aebc

Raw Audit Messages
type=AVC msg=audit(1303480105.287:60): avc:  denied  { write } for  pid=1976 comm="telepathy-gabbl" laddr=192.168.1.102 lport=57722 faddr=69.63.181.105 fport=5222 scontext=system_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1303480105.287:60): arch=x86_64 syscall=sendto success=no exit=EACCES a0=8 a1=2472120 a2=75 a3=4000 items=0 ppid=1 pid=1976 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=telepathy-gabbl exe=/usr/libexec/telepathy-gabble subj=system_u:object_r:unlabeled_t:s0 key=(null)

Hash: telepathy-gabbl,unlabeled_t,unlabeled_t,tcp_socket,write

audit2allow

#============= unlabeled_t ==============
allow unlabeled_t self:tcp_socket write;

audit2allow -R

#============= unlabeled_t ==============
allow unlabeled_t self:tcp_socket write;

Comment 1 Dominick Grift 2011-05-24 12:50:00 UTC
Please restart empathy (quit and start)

This should fix this issue

Comment 2 Miroslav Grepl 2011-05-24 12:55:13 UTC

*** This bug has been marked as a duplicate of bug 707220 ***