Bug 1371818 - SELinux is preventing geoclue from 'write' accesses on the sock_file socket.
Summary: SELinux is preventing geoclue from 'write' accesses on the sock_file socket.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:18f8d363e34900368ec6eff2b5a...
: 1369367 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-31 08:12 UTC by Heiko Adams
Modified: 2016-09-21 00:36 UTC (History)
12 users (show)

Fixed In Version: selinux-policy-3.13.1-214.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 00:36:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2016-08-31 08:12:30 UTC
Description of problem:
SELinux is preventing geoclue from 'write' accesses on the sock_file socket.

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

If sie denken, dass es geoclue standardmässig erlaubt sein sollte, write Zugriff auf socket sock_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'geoclue' --raw | audit2allow -M my-geoclue
# semodule -X 300 -i my-geoclue.pp

Additional Information:
Source Context                system_u:system_r:geoclue_t:s0
Target Context                system_u:object_r:syslogd_var_run_t:s0
Target Objects                socket [ sock_file ]
Source                        geoclue
Source Path                   geoclue
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-211.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc2.git3.1.fc25.x86_64 #1
                              SMP Fri Aug 19 14:24:04 UTC 2016 x86_64 x86_64
Alert Count                   4
First Seen                    2016-08-31 06:44:50 CEST
Last Seen                     2016-08-31 08:22:45 CEST
Local ID                      5d4d19d1-296f-4195-ba0c-f9e49263a99f

Raw Audit Messages
type=AVC msg=audit(1472624565.183:253): avc:  denied  { write } for  pid=10134 comm="geoclue" name="socket" dev="tmpfs" ino=12374 scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:object_r:syslogd_var_run_t:s0 tclass=sock_file permissive=0


Hash: geoclue,geoclue_t,syslogd_var_run_t,sock_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-211.fc25.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc2.git3.1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1369367

Comment 1 Laurent Wandrebeck 2016-09-03 12:47:38 UTC
Description of problem:
Happens at start of a gnome session.

Version-Release number of selected component:
selinux-policy-3.13.1-211.fc25.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc4.git0.1.fc25.x86_64
type:           libreport

Comment 2 Giulio 'juliuxpigface' 2016-09-09 07:37:20 UTC
Description of problem:
I've found this right after loggin' in to a Xfce session (Fedora Workstation x86_64, as qemu-guest).

Version-Release number of selected component:
selinux-policy-3.13.1-211.fc25.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc4.git0.1.fc25.x86_64
type:           libreport

Comment 3 Ed Marshall 2016-09-14 23:11:30 UTC
Description of problem:
Unlocked screen after return from suspend.

Version-Release number of selected component:
selinux-policy-3.13.1-211.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc5.git1.1.fc25.x86_64
type:           libreport

Comment 4 Lukas Vrabec 2016-09-15 12:25:15 UTC
*** Bug 1369367 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2016-09-15 17:22:01 UTC
selinux-policy-3.13.1-214.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f88bebc7c

Comment 6 Fedora Update System 2016-09-16 01:23:05 UTC
selinux-policy-3.13.1-214.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f88bebc7c

Comment 7 Fedora Update System 2016-09-21 00:36:02 UTC
selinux-policy-3.13.1-214.fc25 has been pushed to the Fedora 25 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.