Bug 1374670

Summary: KDE desktop freezes on login
Product: [Fedora] Fedora Reporter: pavel raur <pavel.raur.pr>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: awilliam, bugzilla, dominick.grift, dwalsh, kparal, lvrabec, mgrepl, pavel.raur.pr, plautrba, pschindl, rdieter, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedBlocker
Fixed In Version: selinux-policy-3.13.1-214.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 00:35:42 UTC Type: Bug
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: 1277287    
Attachments:
Description Flags
journalctl output during freeze
none
packages on my pc none

Description pavel raur 2016-09-09 11:45:34 UTC
Created attachment 1199396 [details]
journalctl output during freeze

Description of problem:
Installed and fully updated KDE system freezes on login and while typing to menu or launching application. Starts happening after selinux update.

Version-Release number of selected component (if applicable):
libselinux-2.5-11.fc25.x86_64
libselinux-python3-2.5-11.fc25.x86_64
libselinux-utils-2.5-11.fc25.x86_64
rpm-plugin-selinux-4.13.0-0.rc1.46.fc25.x86_64
selinux-policy-3.13.1-208.fc25.noarch
selinux-policy-targeted-3.13.1-208.fc25.noarch

How reproducible:
always

Steps to Reproduce:
1.run dnf upgrade on kde system
2.reboot
3.try to login, type to menu, launch application

Actual results:
system will freeze

Expected results:
system should run normally without freezing

Additional info:

Comment 1 pavel raur 2016-09-09 11:48:47 UTC
Created attachment 1199399 [details]
packages on my pc

Comment 2 pavel raur 2016-09-09 11:51:33 UTC
If i boot with enforcing=0 there are no problems with this.

Comment 3 pavel raur 2016-09-13 12:38:08 UTC
It takes more than 5 minutes to login or launch application.
I propose this as beta blocker because it violates alpha criterion:

"A system installed with a release-blocking desktop must boot to a log in screen where it is possible to log in to a working desktop using a user account created during installation or a 'first boot' utility."

Comment 4 Adam Williamson 2016-09-13 23:36:03 UTC
if selinux is causing this, there should be an AVC that you can report?

Comment 5 pavel raur 2016-09-14 13:27:47 UTC
There are these avc in log:

Sep 09 07:17:50 localhost.localdomain audit[2901]: AVC avc:  denied  { read } for  pid=2901 comm="udisksd" name="sr0" dev="devtmpfs" ino=8290 scontext=system_u:system_r:udisks2_t:s0 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file permissive=0
Sep 09 07:17:50 localhost.localdomain audit[2901]: AVC avc:  denied  { wake_alarm } for  pid=2901 comm="udisksd" capability=35  scontext=system_u:system_r:udisks2_t:s0 tcontext=system_u:system_r:udisks2_t:s0 tclass=capability2 permissive=0
Sep 09 07:17:50 localhost.localdomain audit[2901]: AVC avc:  denied  { read } for  pid=2901 comm="udisksd" name="sr0" dev="devtmpfs" ino=8290 scontext=system_u:system_r:udisks2_t:s0 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file permissive=0

I wanted to report them through selinux troubleshooter, but it is not installed in default KDE and it doesn't want to start if I install it manually.

Comment 7 Fedora Update System 2016-09-15 17:21:36 UTC
selinux-policy-3.13.1-214.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f88bebc7c

Comment 8 Fedora Update System 2016-09-16 01:22:52 UTC
selinux-policy-3.13.1-214.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-5f88bebc7c

Comment 10 Kamil Páral 2016-09-19 14:46:36 UTC
selinux-policy-3.13.1-214.fc25 seems to fix this issue.

Comment 11 Petr Schindler 2016-09-19 16:36:22 UTC
Discussed at 2016-09-19 blocker review meeting: [1]. 

This bug was accepted as Beta blocker: this is an effective violation of all desktop-related Alpha and Beta criteria (as it takes ~5 minutes to do anything at all)

[1] https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2016-09-19/

Comment 12 Fedora Update System 2016-09-21 00:35:42 UTC
selinux-policy-3.13.1-214.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.