Bug 880761

Summary: GDM extremely slow to load
Product: [Fedora] Fedora Reporter: Brandon <bwat47>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: awilliam, dominick.grift, dwalsh, leigh123linux, mads, mgrepl, redhat, robatino, rstrode, tflink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 04:32:50 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: 752661    
Attachments:
Description Flags
/var/log/audit/audit.log
none
New denied message none

Description Brandon 2012-11-27 18:43:03 UTC
Created attachment 653015 [details]
/var/log/audit/audit.log

Description of problem: Fresh install of fedora 18, with all updates.


Version- 3.6


How reproducible:100%


Steps to Reproduce:
boot the computer, takes about 30 seconds or more just to load gdm.

There's a thread on it here and it appears others have the same issue, appears to be something to do with SElinux: http://forums.fedoraforum.org/showthread.php?t=286100

I've attatched my /var/log/audit/audit.log as suggested by adamw

Comment 1 Brandon 2012-11-27 22:26:41 UTC
Setting SElinux to permissive or disabled appears to remove the delay on my system

Comment 2 Adam Williamson 2012-11-28 02:26:58 UTC
There's a few people reporting this in a forum thread:

http://forums.fedoraforum.org/showthread.php?t=286100

The initial reporter, mdfed, attached various logs but not audit.log to this post:

http://forums.fedoraforum.org/showpost.php?p=1615711&postcount=3

he was advised to turn off selinux and reported "setting selinux to permissive solved my problem. no more gdm errors in the logfiles."

nonamedotc said "I have also been seeing this for a while. Thanks yellowman!", implying he also resolved the issue by setting selinux to permissive.

yellowman, who advised the others to set selinux permissive, posted an extract from his audit.log at http://forums.fedoraforum.org/showpost.php?p=1615977&postcount=9 .

screamin_jesus is the reporter of this bug.

So we have four people who see slow GDM loading resolved by setting selinux to permissive in 18. Dan, Miroslav, Ray, can you look at this? Thanks! Proposing as Final blocker in case this turns out to be a widespread issue, it arguably hits "Following on from the previous criterion, after firstboot is completed and on subsequent boots, a system installed according to any of the above criteria (or the appropriate Beta or Final criteria, when applying this criterion to those releases) must boot to a working graphical environment without unintended user intervention. This includes correctly accessing any encrypted partitions when the correct passphrase is supplied" (Alpha) in the context of a Final release.

Comment 3 leigh scott 2012-11-28 09:37:24 UTC
(In reply to comment #2)

> nonamedotc said "I have also been seeing this for a while. Thanks
> yellowman!", implying he also resolved the issue by setting selinux to
> permissive.
> 
> yellowman, who advised the others to set selinux permissive, posted an
> extract from his audit.log at
> http://forums.fedoraforum.org/showpost.php?p=1615977&postcount=9 .

Hi Adam, sorry I couldn't generate the log report  before

https://bugzilla.redhat.com/show_bug.cgi?id=880953


Leigh (aka yellowman)

Comment 4 Miroslav Grepl 2012-11-28 09:40:16 UTC
Could you execute after login in permissive mode

# ausearch -m user_avc


I am just installing a new F18 virtual machine to see where the problem is.

Comment 5 Adam Williamson 2012-11-28 09:46:58 UTC
leigh: oh that's you? I never catch nick changes!

Comment 6 leigh scott 2012-11-28 10:03:11 UTC
(In reply to comment #4)
> Could you execute after login in permissive mode
> 
> # ausearch -m user_avc
> 
> 
> I am just installing a new F18 virtual machine to see where the problem is.

I've only seen the issue on bare metal and haven't managed to reproduce in vbox.

Comment 7 Adam Williamson 2012-11-28 10:42:29 UTC
I haven't seen this myself in any of my F18 testing (lots of VM testing, some metal testing on my desktop). So it's clearly hardware/config dependent in _some_ way. But equally, it's affecting several people.

Comment 8 leigh scott 2012-11-28 11:03:48 UTC
(In reply to comment #7)
> I haven't seen this myself in any of my F18 testing (lots of VM testing,
> some metal testing on my desktop). So it's clearly hardware/config dependent
> in _some_ way. But equally, it's affecting several people.

I'm using a nvidia GT450 with 304.64 driver and gigabyte mobo with 1055t proc

Comment 9 Miroslav Grepl 2012-11-28 11:34:56 UTC
You are right. I don't see it in on my virtual machine.

Comment 10 Miroslav Grepl 2012-11-28 11:44:17 UTC
Leigh,
if you add a local policy module

# grep execmem /var/log/audit/audit.log |audit2allow -M mypol
# semodule -i mypol.pp

Does it fix the issue?

Comment 11 leigh scott 2012-11-28 11:57:09 UTC
Created attachment 653460 [details]
New denied message

(In reply to comment #10)
> Leigh,
> if you add a local policy module
> 
> # grep execmem /var/log/audit/audit.log |audit2allow -M mypol
> # semodule -i mypol.pp
> 
> Does it fix the issue?

It fixes the first error but has exposed this.

Comment 12 Miroslav Grepl 2012-11-28 12:14:47 UTC
Ok, so you see the same behaviour with the local policy in enforcing mode and you get this user_avc?

Comment 13 leigh scott 2012-11-28 12:59:19 UTC
(In reply to comment #12)
> Ok, so you see the same behaviour with the local policy in enforcing mode
> and you get this user_avc?

Yes I get a similar 20-30 second delay.

Comment 14 Miroslav Grepl 2012-11-28 13:16:16 UTC
ok, just curious about

# grep init_t /var/log/audit/audit.log |audit2allow -M mynewpol
# semodule -i mynewpol.pp

Comment 15 leigh scott 2012-11-28 13:27:08 UTC
(In reply to comment #14)
> ok, just curious about
> 
> # grep init_t /var/log/audit/audit.log |audit2allow -M mynewpol
> # semodule -i mynewpol.pp

Running the above command fixes the delay.

Comment 16 Miroslav Grepl 2012-11-28 13:34:46 UTC
Great. Thank you for your testing.

Comment 17 Miroslav Grepl 2012-11-28 13:53:40 UTC
Fixed in selinux-policy-3.11.1-57.fc18

Comment 18 Fedora Update System 2012-11-28 20:59:10 UTC
selinux-policy-3.11.1-57.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-57.fc18

Comment 19 leigh scott 2012-11-28 21:34:22 UTC
(In reply to comment #16)
> Great. Thank you for your testing.

Thank you for fixing the second issue, the plymouth one is still present.

https://bugzilla.redhat.com/show_bug.cgi?id=880953

Comment 20 Fedora Update System 2012-11-30 06:37:44 UTC
Package selinux-policy-3.11.1-57.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-57.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19374/selinux-policy-3.11.1-57.fc18
then log in and leave karma (feedback).

Comment 21 Tim Flink 2012-11-30 20:16:27 UTC
It sounds like this has been fixed, could someone affected by this bug test the fix from c#20 and comment on the results of testing?

Comment 22 leigh scott 2012-11-30 20:30:47 UTC
(In reply to comment #21)
> It sounds like this has been fixed, could someone affected by this bug test
> the fix from c#20 and comment on the results of testing?

It fixes the original issue here.

Comment 23 Fedora Update System 2012-12-02 19:31:44 UTC
Package selinux-policy-3.11.1-59.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-59.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19374/selinux-policy-3.11.1-59.fc18
then log in and leave karma (feedback).

Comment 24 Tim Flink 2012-12-04 21:56:12 UTC
It sounds like the issue has been fixed with the update from c#23 based on the report in c#22 and no new reports for a while.

Moving to VERIFIED

Comment 25 Fedora Update System 2012-12-07 04:32:52 UTC
selinux-policy-3.11.1-60.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.