Bug 1481566

Summary: SELinux is preventing (geoclue) from 'map' accesses on the file /var/lib/sss/mc/initgroups.
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lsm5, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0fb70924f30c2d414d6a23fb67f763ae0b2f2b87220c31b1175b37d1aa9219b7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-20 11:23:53 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:
Bug Depends On:    
Bug Blocks: 1481454    

Description Adam Williamson 2017-08-15 05:32:38 UTC
Description of problem:
Happened in normal system use after the 'map' permission was introduced.
SELinux is preventing (geoclue) from 'map' accesses on the file /var/lib/sss/mc/initgroups.

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

If you believe that (geoclue) should be allowed map access on the initgroups 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:init_t:s0
Target Context                system_u:object_r:sssd_public_t:s0
Target Objects                /var/lib/sss/mc/initgroups [ file ]
Source                        (geoclue)
Source Path                   (geoclue)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           sssd-common-1.15.3-2.fc27.x86_64
Policy RPM                    selinux-policy-3.13.1-270.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.13.0-0.rc4.git4.1.fc27.x86_64 #1
                              SMP Fri Aug 11 15:03:46 UTC 2017 x86_64 x86_64
Alert Count                   9
First Seen                    2017-08-12 17:16:14 PDT
Last Seen                     2017-08-14 15:08:32 PDT
Local ID                      59d7f5c4-d7e5-433f-b430-1478ba766f49

Raw Audit Messages
type=AVC msg=audit(1502748512.18:542): avc:  denied  { map } for  pid=8668 comm="(systemd)" path="/var/lib/sss/mc/initgroups" dev="dm-2" ino=393253 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:sssd_public_t:s0 tclass=file permissive=1


Hash: (geoclue),init_t,sssd_public_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-270.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc4.git4.1.fc27.x86_64
type:           libreport