Bug 1171429 - SELinux is preventing /usr/libexec/geoclue from 'name_connect' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/libexec/geoclue from 'name_connect' accesses on th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:87c6c9b9e8436323a281334150a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-06 21:02 UTC by hx
Modified: 2015-03-10 00:55 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-10 00:55:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.