Bug 1389320

Summary: SELinux is preventing geoclue from 'read' accesses on the file cpuinfo.
Product: [Fedora] Fedora Reporter: Sam Tygier <samtygier>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: armv7l   
OS: Unspecified   
Whiteboard: abrt_hash:918fe18526455ed168f007b72451dc4892dd6e0290124b023f42d97ce5619f65;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-222.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-10 16:38:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sam Tygier 2016-10-27 12:50:33 UTC
Description of problem:
SELinux is preventing geoclue from 'read' accesses on the file cpuinfo.

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

If you believe that geoclue should be allowed read access on the cpuinfo file 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:
# 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:proc_t:s0
Target Objects                cpuinfo [ file ]
Source                        geoclue
Source Path                   geoclue
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-220.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.4-301.fc25.armv7hl #1 SMP Tue
                              Oct 25 02:01:39 UTC 2016 armv7l armv7l
Alert Count                   17
First Seen                    2016-10-26 11:59:26 BST
Last Seen                     2016-10-27 13:31:16 BST
Local ID                      30d47ddf-a287-49f5-be2a-90ac1c242560

Raw Audit Messages
type=AVC msg=audit(1477571476.895:224): avc:  denied  { read } for  pid=2451 comm="geoclue" name="cpuinfo" dev="proc" ino=4026532358 scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=0


Hash: geoclue,geoclue_t,proc_t,file,read

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.4-301.fc25.armv7hl
type:           libreport

Comment 1 Fedora Update System 2016-11-02 17:51:38 UTC
selinux-policy-3.13.1-222.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d1908bac81

Comment 2 Fedora Update System 2016-11-05 18:57:21 UTC
selinux-policy-3.13.1-222.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-d1908bac81

Comment 3 Fedora Update System 2016-11-10 16:38:05 UTC
selinux-policy-3.13.1-222.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.