Bug 1653508

Summary: SELinux is preventing geoclue from 'search' accesses on the directory 1486.
Product: [Fedora] Fedora Reporter: kevinafrica
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e6e000d78b4f6c965d3bcba8bfe9dad63e7d2a18331d79abcce54f2f9b74be08;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-09 17:28:01 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 kevinafrica 2018-11-27 02:57:59 UTC
Description of problem:
SELinux is preventing geoclue from 'search' accesses on the directory 1486.

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

If you believe that geoclue should be allowed search access on the 1486 directory 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:system_r:unconfined_service_t:s0
Target Objects                1486 [ dir ]
Source                        geoclue
Source Path                   geoclue
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-42.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.19.3-300.fc29.x86_64 #1 SMP Wed
                              Nov 21 15:27:25 UTC 2018 x86_64 x86_64
Alert Count                   9
First Seen                    2018-11-11 20:10:24 PST
Last Seen                     2018-11-26 18:54:20 PST
Local ID                      8002a008-b04e-4fe4-b687-56d196d4420b

Raw Audit Messages
type=AVC msg=audit(1543287260.36:261): avc:  denied  { search } for  pid=2505 comm="geoclue" name="1486" dev="proc" ino=36014 scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=dir permissive=0


Hash: geoclue,geoclue_t,unconfined_service_t,dir,search

Version-Release number of selected component:
selinux-policy-3.14.2-42.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.19.3-300.fc29.x86_64
type:           libreport

Potential duplicate: bug 1520446

Comment 1 Lukas Vrabec 2019-01-09 17:28:01 UTC

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