| Summary: | SELinux is preventing /usr/sbin/asterisk from 'name_connect' accesses on the tcp_socket port 2126. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Daniel Walsh <dwalsh> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 15 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:753a3eda6399993e344b2670053c1bde347f4f5c1fcfeb09f4ebce7199620505 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-07 13:53:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
SELinux is preventing /usr/sbin/asterisk from 'name_connect' accesses on the tcp_socket port 2126. ***** Plugin connect_ports (92.2 confidence) suggests ********************** If you want to allow /usr/sbin/asterisk to connect to network port 2126 Then you need to modify the port type. Do # semanage port -a -t PORT_TYPE -p tcp 2126 where PORT_TYPE is one of the following: festival_port_t, dns_port_t, postgresql_port_t, sip_port_t, snmp_port_t, kerberos_port_t, ocsp_port_t. ***** Plugin catchall_boolean (7.83 confidence) suggests ******************* If you want to allow system to run with NIS Then you must tell SELinux about this by enabling the 'allow_ypbind' boolean. Do setsebool -P allow_ypbind 1 ***** Plugin catchall (1.41 confidence) suggests *************************** If you believe that asterisk should be allowed name_connect access on the port 2126 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 asterisk /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:asterisk_t:s0 Target Context system_u:object_r:port_t:s0 Target Objects port 2126 [ tcp_socket ] Source asterisk Source Path /usr/sbin/asterisk Port 2126 Host (removed) Source RPM Packages asterisk-1.8.3-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-6.1.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38-1.fc15.x86_64 #1 SMP Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64 Alert Count 2 First Seen Fri 25 Mar 2011 07:09:17 AM EDT Last Seen Fri 25 Mar 2011 07:09:17 AM EDT Local ID 5813d01f-0ccb-4531-8953-7ecfc528e549 Raw Audit Messages type=AVC msg=audit(1301051357.318:72): avc: denied { name_connect } for pid=1395 comm="asterisk" dest=2126 scontext=system_u:system_r:asterisk_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1301051357.318:72): arch=x86_64 syscall=connect success=no exit=EACCES a0=a a1=7f9acc000910 a2=10 a3=0 items=0 ppid=1 pid=1395 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=asterisk exe=/usr/sbin/asterisk subj=system_u:system_r:asterisk_t:s0 key=(null) Hash: asterisk,asterisk_t,port_t,tcp_socket,name_connect audit2allow #============= asterisk_t ============== #!!!! This avc can be allowed using the boolean 'allow_ypbind' allow asterisk_t port_t:tcp_socket name_connect; audit2allow -R #============= asterisk_t ============== #!!!! This avc can be allowed using the boolean 'allow_ypbind' allow asterisk_t port_t:tcp_socket name_connect;