Red Hat Bugzilla – Bug 241543
Adding recipents entry to config file crashes setroubleshoot
Last modified: 2008-05-21 10:25:40 EDT
Edit: /etc/setroubleshoot/setroubleshoot.cfg Add an email address to: recipients = Restart setroubleshootd Generate an selinux failure (I did it by making a file in my home directory and then using mv to move it to ~apache/html/ and then trying to view the file). I get the following message in /var/log/messages: May 27 14:04:35 web setroubleshoot: 2007-05-27 14:04:35,256 [avc.ERROR] Plugin Exception plugins.home_tmp_bad_labels Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 260, in analyze_avc report_receiver.report_problem(report) File "/usr/lib/python2.4/site-packages/setroubleshoot/server.py", line 145, in report_problem self.database.set_filter(self, siginfo.sig, addr, FILTER_ALWAYS) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 468, in set_filter siginfo = self.lookup_signature(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 388, in lookup_signature matches = self.sigs.match_signatures(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/signature.py", line 1265, in match_signatures if pat.__dict__[name] == sig.__dict__[name]: KeyError: 'analysis_id' May 27 14:04:35 web setroubleshoot: 2007-05-27 14:04:35,297 [avc.ERROR] Plugin Exception plugins.disable_trans Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 260, in analyze_avc report_receiver.report_problem(report) File "/usr/lib/python2.4/site-packages/setroubleshoot/server.py", line 145, in report_problem self.database.set_filter(self, siginfo.sig, addr, FILTER_ALWAYS) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 468, in set_filter siginfo = self.lookup_signature(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 388, in lookup_signature matches = self.sigs.match_signatures(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/signature.py", line 1265, in match_signatures if pat.__dict__[name] == sig.__dict__[name]: KeyError: 'analysis_id' May 27 14:04:35 web setroubleshoot: 2007-05-27 14:04:35,303 [avc.ERROR] Plugin Exception plugins.catchall Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 260, in analyze_avc report_receiver.report_problem(report) File "/usr/lib/python2.4/site-packages/setroubleshoot/server.py", line 145, in report_problem self.database.set_filter(self, siginfo.sig, addr, FILTER_ALWAYS) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 468, in set_filter siginfo = self.lookup_signature(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 388, in lookup_signature matches = self.sigs.match_signatures(sig) File "/usr/lib/python2.4/site-packages/setroubleshoot/signature.py", line 1265, in match_signatures if pat.__dict__[name] == sig.__dict__[name]: KeyError: 'analysis_id'
I forgot to add I am running: # rpm -q setroubleshoot setroubleshoot-1.8.11-4.el5
Created attachment 157812 [details] patch to correct invalid argument in set_filter()
Because of scheduling issues concerning bug fix updates it may be a while till you see this bug fix appear in a RHEL update. However, because the fix is so easy I tell you how to fix it in your installation using a text editor. Open /usr/lib/python2.4/site-packages/setroubleshoot/server.py goto line 145, remove the first parameter (self) from the set_filter() call so it reads like this: self.database.set_filter(siginfo.sig, addr, FILTER_ALWAYS)
Thanks!
reopen, set state to Modified, request 5.2 Update inclusion
QE ack for RHEL5.2. Reproducer in comment 0.
Note, reproducer in comment #0 is no longer valid, that configuration option has been removed. Email address can now be managed directly via the GUI menu item: File-->Edit email alert list
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2008-0061.html