Bug 579490 - Asterisk unable to open TCP SIP sockets
Summary: Asterisk unable to open TCP SIP sockets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-05 15:11 UTC by Jeffrey C. Ollie
Modified: 2010-04-21 22:00 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-21 22:00:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeffrey C. Ollie 2010-04-05 15:11:38 UTC
Description of problem:
Asterisk unable to open TCP SIP sockets

Version-Release number of selected component (if applicable):
asterisk-1.6.2.6-1.fc13.x86_64
selinux-policy-3.7.16-2.fc13.noarch

How reproducible:
Always

Steps to Reproduce:
1. Enable TCP SIP sockets in the Asterisk SIP configuration
2. Start Asterisk
  
Actual results:
Asterisk cannot open SIP sockets

Expected results:
Asterisk can open SIP sockets

Additional info:

Here is the AVC I am getting:

time->Mon Apr  5 08:55:53 2010
type=SYSCALL msg=audit(1270475753.942:12806): arch=c000003e syscall=42 success=yes exit=0 a0=11 a1=7ff5180377d8 a2=10 a3=75babc items=0 ppid=1 pid=18897 auid=500 uid=494 gid=486 euid=494 suid=494 fsuid=494 egid=486 sgid=486 fsgid=486 tty=(none) ses=56 comm="asterisk" exe=2F7573722F7362696E2F617374657269736B202864656C6574656429 subj=unconfined_u:system_r:asterisk_t:s0 key=(null)
type=AVC msg=audit(1270475753.942:12806): avc:  denied  { name_connect } for  pid=18897 comm="asterisk" dest=5060 scontext=unconfined_u:system_r:asterisk_t:s0 tcontext=system_u:object_r:sip_port_t:s0 tclass=tcp_socket

Comment 1 Daniel Walsh 2010-04-05 16:07:15 UTC
Does asterisk also listen on this tcp port?

Comment 2 Daniel Walsh 2010-04-05 16:08:30 UTC
Fixed in selinux-policy-3.7.17-6.fc13.noarch

Miroslav back port to F12 also.

corenet_tcp_bind_sip_port(asterisk_t)
corenet_tcp_connect_sip_port(asterisk_t)

Comment 3 Jeffrey C. Ollie 2010-04-05 16:29:52 UTC
Yes Asterisk needs to listen on the port as well.

Comment 4 Fedora Update System 2010-04-05 18:57:18 UTC
selinux-policy-3.7.17-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.17-6.fc13

Comment 5 Fedora Update System 2010-04-19 02:40:32 UTC
selinux-policy-3.7.19-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 6 Fedora Update System 2010-04-20 13:24:46 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 7 Fedora Update System 2010-04-21 21:58:47 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 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.