Bug 681046

Summary: login time check is slow
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: setroubleshoot-3.0.30-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-04 10:06:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Colin Walters 2011-02-28 22:42:34 UTC
Running perf on my netbook during login, setroubleshootd shows up at the top (this is CPU, I haven't analyzed disk I/O).  Talked with dwalsh, apparently this is an attempt to compute the audit delta of events since I last logged in.

Why is it so inefficient to figure this out?  Can we fast path it?

Comment 1 Daniel Walsh 2011-03-01 14:50:24 UTC
The problem is we are starting the entire python server application to check if any updates have happened, we could switch to a different service to see if an update has happened or just disable the check.

I am inclined to disable it by default, and add a checkbox on the gui to ask if the user wants to check at login, for missed AVC's.

Comment 2 Daniel Walsh 2011-03-01 15:52:32 UTC
Fixed in setroubleshoot-3.0.30-1.fc15

You now have to add a checkonlogin=1 flag to ~/.setroubleshoot to get old behaviour

Comment 3 Fedora Update System 2011-03-01 16:15:41 UTC
Package setroubleshoot-3.0.30-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing setroubleshoot-3.0.30-1.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/setroubleshoot-3.0.30-1.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-03-01 21:36:29 UTC
setroubleshoot-3.0.30-1.fc15 has been pushed to the Fedora 15 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update setroubleshoot'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/setroubleshoot-3.0.30-1.fc15

Comment 5 Fedora Update System 2011-03-04 10:05:54 UTC
setroubleshoot-3.0.30-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.