Bug 1389320 - SELinux is preventing geoclue from 'read' accesses on the file cpuinfo.
Summary: SELinux is preventing geoclue from 'read' accesses on the file cpuinfo.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: armv7l
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:918fe18526455ed168f007b7245...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-27 12:50 UTC by Sam Tygier
Modified: 2016-11-10 16:38 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-222.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-10 16:38:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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