Bug 874960

Summary: SELinux is preventing /usr/bin/boinc_client from 'name_connect' accesses on the tcp_socket .
Product: [Fedora] Fedora Reporter: Peter Ludikovsky <darthludi>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e7d4452972e658554968617ab8d4cf7624abab8ff6e14a640f896b69391ece88
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:26:23 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Peter Ludikovsky 2012-11-09 08:04:40 UTC
Description of problem:
Configured Boinc client to use an HTTP proxy for all connections

Additional info:
libreport version: 2.0.18
kernel:         3.6.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/boinc_client from 'name_connect' accesses on the tcp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that boinc_client should be allowed name_connect access on the  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                system_u:system_r:boinc_t:s0
:Target Context                system_u:object_r:squid_port_t:s0
:Target Objects                 [ tcp_socket ]
:Source                        boinc_client
:Source Path                   /usr/bin/boinc_client
:Port                          3128
:Host                          (removed)
:Source RPM Packages           boinc-client-7.0.29-1.r25790svn.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.x86_64 #1 SMP Mon Oct
:                              22 15:32:35 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-09 09:01:58 CET
:Last Seen                     2012-11-09 09:01:58 CET
:Local ID                      81038edf-e561-4fc4-b534-89afddc3891b
:
:Raw Audit Messages
:type=AVC msg=audit(1352448118.907:272): avc:  denied  { name_connect } for  pid=10952 comm="boinc_client" dest=3128 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:squid_port_t:s0 tclass=tcp_socket
:
:
:type=SYSCALL msg=audit(1352448118.907:272): arch=x86_64 syscall=connect success=no exit=EACCES a0=8 a1=7ffff5e65b80 a2=10 a3=0 items=0 ppid=10951 pid=10952 auid=4294967295 uid=993 gid=989 euid=993 suid=993 fsuid=993 egid=989 sgid=989 fsgid=989 tty=(none) ses=4294967295 comm=boinc_client exe=/usr/bin/boinc_client subj=system_u:system_r:boinc_t:s0 key=(null)
:
:Hash: boinc_client,boinc_t,squid_port_t,tcp_socket,name_connect
:
:audit2allow
:
:#============= boinc_t ==============
:allow boinc_t squid_port_t:tcp_socket name_connect;
:
:audit2allow -R
:
:#============= boinc_t ==============
:allow boinc_t squid_port_t:tcp_socket name_connect;
:

Comment 1 Peter Ludikovsky 2012-11-09 08:04:43 UTC
Created attachment 641333 [details]
File: type

Comment 2 Peter Ludikovsky 2012-11-09 08:04:46 UTC
Created attachment 641334 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-12 09:37:53 UTC
Fixed in  selinux-policy-3.10.0-160.fc17.noarch

commit 7edd46838a0e12f6fe6c3b1a9eb2ccc4ccc3f3c3
Author: Miroslav Grepl <mgrepl>
Date:   Mon Nov 12 10:12:46 2012 +0100

    Allow BOINC client to use an HTTP proxy for all connections

Comment 4 Fedora Update System 2012-11-21 11:53:31 UTC
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17

Comment 5 Fedora Update System 2012-11-22 03:55:33 UTC
Package selinux-policy-3.10.0-161.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-161.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:26:25 UTC
selinux-policy-3.10.0-161.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.