Bug 678661

Summary: SELinux is preventing /usr/bin/boinc_client from 'name_connect' accesses on the tcp_socket port 6000.
Product: [Fedora] Fedora Reporter: Stefan Parviainen <pafcu>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl, nberrehouc
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d68e7b5a9755b6f00f86dcf0af02ef2c2efa01b839053ac0dee695ef68514171
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 15:28:06 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 Stefan Parviainen 2011-02-18 20:07:15 UTC
SELinux is preventing /usr/bin/boinc_client from 'name_connect' accesses on the tcp_socket port 6000.

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

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

Additional Information:
Source Context                unconfined_u:system_r:boinc_t:s0
Target Context                system_u:object_r:xserver_port_t:s0
Target Objects                port 6000 [ tcp_socket ]
Source                        boinc_client
Source Path                   /usr/bin/boinc_client
Port                          6000
Host                          (removed)
Source RPM Packages           boinc-client-6.10.45-2.r21128svn.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64 #1 SMP
                              Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Fri 18 Feb 2011 10:06:29 PM EET
Last Seen                     Fri 18 Feb 2011 10:06:29 PM EET
Local ID                      74f598e7-5269-41d1-9e0b-02e3c6e0ad09

Raw Audit Messages
type=AVC msg=audit(1298059589.258:30319): avc:  denied  { name_connect } for  pid=4838 comm="boinc_client" dest=6000 scontext=unconfined_u:system_r:boinc_t:s0 tcontext=system_u:object_r:xserver_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1298059589.258:30319): arch=x86_64 syscall=connect success=no exit=EACCES a0=6 a1=178b530 a2=10 a3=7fff8056f218 items=0 ppid=1 pid=4838 auid=500 uid=491 gid=478 euid=491 suid=491 fsuid=491 egid=478 sgid=478 fsgid=478 tty=(none) ses=1 comm=boinc_client exe=/usr/bin/boinc_client subj=unconfined_u:system_r:boinc_t:s0 key=(null)

Hash: boinc_client,boinc_t,xserver_port_t,tcp_socket,name_connect

audit2allow

#============= boinc_t ==============
allow boinc_t xserver_port_t:tcp_socket name_connect;

audit2allow -R

#============= boinc_t ==============
allow boinc_t xserver_port_t:tcp_socket name_connect;

Comment 1 Miroslav Grepl 2011-02-21 08:54:18 UTC
Did you setup bonic to use this port?

# grep 6000 /etc/mpd.conf


If no, does boinc work? 

I saw this issue related to pulseaudio and boinc did not work anyway.