Bug 698266

Summary: SELinux is preventing /usr/libexec/telepathy-haze from 'name_connect' accesses on the tcp_socket port 5061.
Product: [Fedora] Fedora Reporter: Adam Hough <adam.hough>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0021c1d5e9dee7adb24d835960bba48bcfe06d5b0a562ceb70396759be9f04c0
Fixed In Version: selinux-policy-3.9.16-18.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-02 03:39:20 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 Adam Hough 2011-04-20 14:33:14 UTC
SELinux is preventing /usr/libexec/telepathy-haze from 'name_connect' accesses on the tcp_socket port 5061.

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

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

Additional Information:
Source Context                unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0
                              .c1023
Target Context                system_u:object_r:sip_port_t:s0
Target Objects                port 5061 [ tcp_socket ]
Source                        telepathy-haze
Source Path                   /usr/libexec/telepathy-haze
Port                          5061
Host                          (removed)
Source RPM Packages           telepathy-haze-0.4.0-3.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-15.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP Wed Mar
                              30 16:54:01 UTC 2011 i686 i686
Alert Count                   28
First Seen                    Tue 19 Apr 2011 10:30:07 AM CDT
Last Seen                     Tue 19 Apr 2011 10:32:34 AM CDT
Local ID                      16f7f32c-fb5b-4253-a1ae-4883fab4c3df

Raw Audit Messages
type=AVC msg=audit(1303227154.941:233): avc:  denied  { name_connect } for  pid=11834 comm="telepathy-haze" dest=5061 scontext=unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sip_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1303227154.941:233): arch=i386 syscall=socketcall success=no exit=EACCES a0=3 a1=bff22b70 a2=4e40395c a3=8448650 items=0 ppid=1 pid=11834 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=telepathy-haze exe=/usr/libexec/telepathy-haze subj=unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0.c1023 key=(null)

Hash: telepathy-haze,telepathy_msn_t,sip_port_t,tcp_socket,name_connect

audit2allow

#============= telepathy_msn_t ==============
allow telepathy_msn_t sip_port_t:tcp_socket name_connect;

audit2allow -R

#============= telepathy_msn_t ==============
allow telepathy_msn_t sip_port_t:tcp_socket name_connect;

Comment 1 Daniel Walsh 2011-04-20 14:55:14 UTC
Fixed in selinux-policy-3.9.16-16.fc15

Comment 2 Fedora Update System 2011-04-21 15:05:05 UTC
selinux-policy-3.9.16-16.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-16.fc15

Comment 3 Fedora Update System 2011-04-22 00:16:16 UTC
Package selinux-policy-3.9.16-16.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-16.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-16.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-28 19:06:55 UTC
Package selinux-policy-3.9.16-18.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-18.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-18.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-05-02 03:38:30 UTC
selinux-policy-3.9.16-18.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.