Bug 644036

Summary: SELinux is preventing /usr/bin/mpd "name_connect" access .
Product: [Fedora] Fedora Reporter: rvcsaba
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2bf2d2024bce05b70c0f9fd892c297bec9590082a3be016463be38d9f927284a
Fixed In Version: selinux-policy-3.9.7-7.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-01 20:50:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description rvcsaba 2010-10-18 19:08:52 UTC
Summary:

SELinux is preventing /usr/bin/mpd "name_connect" access .

Detailed Description:

SELinux denied access requested by mpd. It is not expected that this access is
required by mpd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:mpd_t:s0
Target Context                system_u:object_r:soundd_port_t:s0
Target Objects                None [ tcp_socket ]
Source                        mpd
Source Path                   /usr/bin/mpd
Port                          8000
Host                          (removed)
Source RPM Packages           mpd-0.15.12-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-4.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-44.fc14.x86_64 #1 SMP Fri Oct
                              15 17:48:06 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 18 Oct 2010 08:58:09 PM CEST
Last Seen                     Mon 18 Oct 2010 08:58:09 PM CEST
Local ID                      e07b7790-ab06-4947-ab8b-167f9a4c5877
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1287428289.866:35004): avc:  denied  { name_connect } for  pid=2273 comm="mpd" dest=8000 scontext=system_u:system_r:mpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket

node=(removed) type=SYSCALL msg=audit(1287428289.866:35004): arch=c000003e syscall=42 success=no exit=-115 a0=9 a1=7f2604c73790 a2=10 a3=0 items=0 ppid=1 pid=2273 auid=4294967295 uid=487 gid=467 euid=487 suid=487 fsuid=487 egid=467 sgid=467 fsgid=467 tty=(none) ses=4294967295 comm="mpd" exe="/usr/bin/mpd" subj=system_u:system_r:mpd_t:s0 key=(null)



Hash String generated from  catchall,mpd,mpd_t,soundd_port_t,tcp_socket,name_connect
audit2allow suggests:

#============= mpd_t ==============
allow mpd_t soundd_port_t:tcp_socket name_connect;

Comment 1 Daniel Walsh 2010-10-18 20:56:49 UTC
Miroslav does this sound reasonable?

Comment 2 Daniel Walsh 2010-10-18 21:01:22 UTC
Fixed in selinux-policy-3.9.7-5.fc14

Comment 3 Fedora Update System 2010-10-28 20:12:38 UTC
selinux-policy-3.9.7-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-7.fc14

Comment 4 Fedora Update System 2010-10-29 20:38:52 UTC
selinux-policy-3.9.7-7.fc14 has been pushed to the Fedora 14 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: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-7.fc14

Comment 5 Fedora Update System 2010-11-01 20:50:09 UTC
selinux-policy-3.9.7-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.