Bug 1171429

Summary: SELinux is preventing /usr/libexec/geoclue from 'name_connect' accesses on the tcp_socket .
Product: [Fedora] Fedora Reporter: hx
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:87c6c9b9e8436323a281334150aceae4cc6618be588ef7b0d9ff07e77d207828
Fixed In Version: selinux-policy-3.12.1-197.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-10 00:55:55 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 hx 2014-12-06 21:02:15 UTC
Description of problem:
SELinux is preventing /usr/libexec/geoclue from 'name_connect' accesses on the tcp_socket .

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

If you believe that geoclue 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 geoclue /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:geoclue_t:s0-s0:c0.c1023
Target Context                system_u:object_r:kerberos_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        geoclue
Source Path                   /usr/libexec/geoclue
Port                          88
Host                          (removed)
Source RPM Packages           geoclue2-2.0.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-193.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.3-200.fc20.x86_64 #1 SMP Fri
                              Nov 14 19:45:42 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-12-06 17:12:57 EET
Last Seen                     2014-12-06 17:12:57 EET
Local ID                      5afdc8e1-d5b9-4267-8670-8cd1b146ff8a

Raw Audit Messages
type=AVC msg=audit(1417878777.101:525): avc:  denied  { name_connect } for  pid=2907 comm="geoclue" dest=88 scontext=system_u:system_r:geoclue_t:s0-s0:c0.c1023 tcontext=system_u:object_r:kerberos_port_t:s0 tclass=tcp_socket permissive=1


type=SYSCALL msg=audit(1417878777.101:525): arch=x86_64 syscall=connect success=no exit=EINPROGRESS a0=b a1=7fff105377b0 a2=10 a3=394e005dee items=0 ppid=1 pid=2907 auid=4294967295 uid=991 gid=986 euid=991 suid=991 fsuid=991 egid=986 sgid=986 fsgid=986 tty=(none) ses=4294967295 comm=geoclue exe=/usr/libexec/geoclue subj=system_u:system_r:geoclue_t:s0-s0:c0.c1023 key=(null)

Hash: geoclue,geoclue_t,kerberos_port_t,tcp_socket,name_connect

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.17.3-200.fc20.x86_64
type:           libreport

Comment 3 Daniel Walsh 2014-12-15 15:13:54 UTC
This looks like geoclue_t is using kerberos for some reason.

Comment 4 Lukas Vrabec 2014-12-16 14:39:16 UTC
commit 46498278b8aaf491fc2b6d43a35e062b06f1cbcd
Author: Lukas Vrabec <lvrabec>
Date:   Tue Dec 16 09:34:40 2014 -0500

    Allow geoclue to use kerberos. BZ(1171429)

Comment 5 Fedora Update System 2015-01-27 16:56:48 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 6 Fedora Update System 2015-01-30 04:41:43 UTC
Package selinux-policy-3.12.1-197.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-03-10 00:55:55 UTC
selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.