Bug 1575582

Summary: SELinux is preventing (geoclue) from using the 'nnp_transition' accesses on a process.
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 28CC: dominik, dwalsh, kparal, lvrabec, mgrepl, mrunge, plautrba, plroskin, pmoore, sbonazzo
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:3708be733a626350ddc1ad5419719f048de2a9226c3395eb5860f1ccbd7b4843;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.1-32.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-09 20:43: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 Ankur Sinha (FranciscoD) 2018-05-07 10:51:15 UTC
Description of problem:
SELinux is preventing (geoclue) from using the 'nnp_transition' accesses on a process.

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

If you believe that (geoclue) should be allowed nnp_transition 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:init_t:s0
Target Context                system_u:system_r:geoclue_t:s0
Target Objects                Unknown [ process2 ]
Source                        (geoclue)
Source Path                   (geoclue)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-24.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.16.4-300.fc28.x86_64 #1 SMP Tue
                              Apr 24 22:15:13 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-05-07 11:42:19 BST
Last Seen                     2018-05-07 11:42:19 BST
Local ID                      8eb131a7-6b50-4d0a-a394-60bef64adc32

Raw Audit Messages
type=AVC msg=audit(1525689739.468:1571): avc:  denied  { nnp_transition } for  pid=30683 comm="(geoclue)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:geoclue_t:s0 tclass=process2 permissive=0


Hash: (geoclue),init_t,geoclue_t,process2,nnp_transition

Version-Release number of selected component:
selinux-policy-3.14.1-24.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.4-300.fc28.x86_64
type:           libreport

Potential duplicate: bug 1574985

Comment 1 Kamil Páral 2018-05-09 07:55:52 UTC
Description of problem:
I simply booted and logged in, no idea what caused this.

Version-Release number of selected component:
selinux-policy-3.14.1-24.fc28.noarch

Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.7-300.fc28.x86_64
type:           libreport

Comment 2 Matthias Runge 2018-05-10 16:04:23 UTC
Description of problem:
Log into Gnome3

Version-Release number of selected component:
selinux-policy-3.14.1-24.fc28.noarch

Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.7-300.fc28.x86_64
type:           libreport

Comment 3 Sandro Bonazzola 2018-05-16 06:20:14 UTC
Description of problem:
Opened meteo forecast

Version-Release number of selected component:
selinux-policy-3.14.1-24.fc28.noarch

Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.8-300.fc28.x86_64
type:           libreport

Comment 4 Dominik 'Rathann' Mierzejewski 2018-05-24 05:57:54 UTC
Description of problem:
This happens after every login.

Version-Release number of selected component:
selinux-policy-3.14.1-24.fc28.noarch

Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.16.8-300.fc28.x86_64
type:           libreport

Comment 5 Fedora Update System 2018-06-06 13:37:27 UTC
selinux-policy-3.14.1-32.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de

Comment 6 Fedora Update System 2018-06-07 13:17:50 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 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-2018-743a9247de

Comment 7 Fedora Update System 2018-06-09 20:43:01 UTC
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.