Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1369367

Summary: SELinux is preventing geoclue from 'write' accesses on the sock_file socket.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:18f8d363e34900368ec6eff2b5af52db3b7a684ae248cb3b6d411cb8ae4faa3f;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-15 12:25:15 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 Nicolas Mailhot 2016-08-23 08:43:39 UTC
Description of problem:
SELinux is preventing geoclue from 'write' accesses on the sock_file socket.

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

If vous pensez que geoclue devrait être autorisé à accéder write sur socket sock_file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
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-209.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc2.git4.1.fc26.x86_64 #1
                              SMP Sat Aug 20 03:06:32 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-08-22 08:35:21 CEST
Last Seen                     2016-08-22 08:35:21 CEST
Local ID                      b9fd5b1c-d4bf-4e78-b4e3-993df4c144f5

Raw Audit Messages
type=AVC msg=audit(1471847721.76:194): avc:  denied  { write } for  pid=1316 comm="geoclue" name="socket" dev="tmpfs" ino=9571 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-209.fc26.noarch

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

Comment 1 Lukas Vrabec 2016-09-15 12:25:15 UTC

*** This bug has been marked as a duplicate of bug 1371818 ***