Bug 1796714

Summary: SELinux is preventing geoclue from using the 'setsched' accesses on a process.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9eb94312294921813ca97f2326d83227ef7297786d06d5795b9f27ccc0cf5e86;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-31 06:38:52 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 Mikhail 2020-01-31 03:24:49 UTC
Description of problem:
Occured when I disable WiFi
SELinux is preventing geoclue from using the 'setsched' accesses on a process.

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

If you believe that geoclue should be allowed setsched access on processes labeled geoclue_t 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:geoclue_t:s0
Target Objects                Unknown [ process ]
Source                        geoclue
Source Path                   geoclue
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.5-20.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.5.0-0.rc7.git0.2.fc32.x86_64 #1
                              SMP Mon Jan 20 22:22:45 +05 2020 x86_64 x86_64
Alert Count                   32
First Seen                    2020-01-25 23:50:42 +05
Last Seen                     2020-01-31 08:23:41 +05
Local ID                      5f8aa7eb-4616-422a-8946-3f8aa40083c0

Raw Audit Messages
type=AVC msg=audit(1580441021.192:662): avc:  denied  { setsched } for  pid=1783 comm="geoclue" scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:system_r:geoclue_t:s0 tclass=process permissive=1


Hash: geoclue,geoclue_t,geoclue_t,process,setsched

Version-Release number of selected component:
selinux-policy-3.14.5-20.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.5.0-0.rc7.git0.2.fc32.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2020-01-31 06:38:52 UTC

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