Bug 670423 - 'SEFaultSignatureInfo' object has no attribute 'solution'
Summary: 'SEFaultSignatureInfo' object has no attribute 'solution'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-18 08:38 UTC by Anthony Messina
Modified: 2011-01-26 20:59 UTC (History)
2 users (show)

Fixed In Version: setroubleshoot-3.0.23-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-26 20:59:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Could you replace your email_alert with this one and see if it works. (2.75 KB, application/octet-stream)
2011-01-18 15:53 UTC, Daniel Walsh
no flags Details

Description Anthony Messina 2011-01-18 08:38:48 UTC
Using:

~]# rpm -qa|grep setroubleshoot|sort
setroubleshoot-3.0.19-1.fc14.x86_64
setroubleshoot-plugins-3.0.9-1.fc14.noarch
setroubleshoot-server-3.0.19-1.fc14.x86_64

~]# cat /var/lib/setroubleshoot/email_alert_recipients
root   filter_type=never

I am not receiving email alerts and get the following error in /var/log/messages:

setroubleshoot: [avc.ERROR] Exception during AVC analysis: 'SEFaultSignatureInfo' object has no attribute 'solution'#012Traceback (most recent call last):#012  File "/usr/lib64/python2.7/site-packages/setroubleshoot/analyze.py", line 234, in run#012    self.analyze_avc(avc, report_receiver)#012  File "/usr/lib64/python2.7/site-packages/setroubleshoot/analyze.py", line 214, in analyze_avc#012    report_receiver.report_problem(siginfo)#012  File "/usr/lib64/python2.7/site-packages/setroubleshoot/server.py", line 195, in report_problem#012    email_alert(siginfo, to_addrs)#012  File "/usr/lib64/python2.7/site-packages/setroubleshoot/email_alert.py", line 60, in email_alert#012    summary = html_to_text(siginfo.solution.summary, 1024)#012AttributeError: 'SEFaultSignatureInfo' object has no attribute 'solution'

Comment 1 Daniel Walsh 2011-01-18 15:53:28 UTC
Created attachment 474086 [details]
Could you replace your email_alert with this one and see if it works.

You will have to run pychecker on the py to compile it after you replace the old one so setroubleshoot can use it,  If this works I will ship a new setroubleshoot.

Comment 2 Anthony Messina 2011-01-18 20:43:33 UTC
I now receive the email alerts again, however, when an alert is triggered, I receieve the following (ignore the Postfix setsched--that's another error):

type=AVC msg=audit(1295383243.027:108370): avc:  denied  { setsched } for  pid=14532 comm="smtpd" scontext=system_u:system_r:postfix_smtpd_t:s0 tcontext=system_u:system_r:postfix_smtpd_t:s0 tclass=process
type=SYSCALL msg=audit(1295383243.027:108370): arch=c000003e syscall=144 success=yes exit=0 a0=38c4 a1=0 a2=7fff116d8920 a3=7fff116d8660 items=0 ppid=2885 pid=14532 auid=4294967295 uid=89 gid=89 euid=89 suid=89 fsuid=89 egid=89 sgid=89 fsgid=89 tty=(none) ses=4294967295 comm="smtpd" exe="/usr/libexec/postfix/smtpd" subj=system_u:system_r:postfix_smtpd_t:s0 key=(null)
type=AVC msg=audit(1295383249.886:108371): avc:  denied  { write } for  pid=14559 comm="setroubleshootd" name="setroubleshoot" dev=sdd3 ino=3113327 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir
type=AVC msg=audit(1295383249.886:108371): avc:  denied  { remove_name } for  pid=14559 comm="setroubleshootd" name="email_alert.pyc" dev=sdd3 ino=3113355 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir
type=AVC msg=audit(1295383249.886:108371): avc:  denied  { unlink } for  pid=14559 comm="setroubleshootd" name="email_alert.pyc" dev=sdd3 ino=3113355 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file
type=SYSCALL msg=audit(1295383249.886:108371): arch=c000003e syscall=87 success=yes exit=0 a0=7f6cbc97d020 a1=0 a2=4d35f9b0 a3=1 items=0 ppid=1 pid=14559 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="setroubleshootd" exe="/usr/bin/python" subj=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1295383249.886:108372): avc:  denied  { add_name } for  pid=14559 comm="setroubleshootd" name="email_alert.pyc" scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir                                                                                                                                                                                 
type=AVC msg=audit(1295383249.886:108372): avc:  denied  { create } for  pid=14559 comm="setroubleshootd" name="email_alert.pyc" scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file                                                                                                                                                                                  
type=AVC msg=audit(1295383249.886:108372): avc:  denied  { write } for  pid=14559 comm="setroubleshootd" name="email_alert.pyc" dev=sdd3 ino=3113366 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

Comment 3 Fedora Update System 2011-01-18 20:50:38 UTC
setroubleshoot-3.0.23-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/setroubleshoot-3.0.23-1.fc14

Comment 4 Daniel Walsh 2011-01-18 20:54:38 UTC
THe new version of setroubleshoot includes the email_alert and will not generate the AVCs above.

Comment 5 Fedora Update System 2011-01-19 21:07:09 UTC
setroubleshoot-3.0.23-1.fc14 has been pushed to the Fedora 14 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.23-1.fc14

Comment 6 Anthony Messina 2011-01-20 23:22:35 UTC
This works for me.  Thank you.

Comment 7 Daniel Walsh 2011-01-21 13:02:25 UTC
Please update karma.

Comment 8 Anthony Messina 2011-01-21 21:36:31 UTC
I did that before I updated the bug: 2011-01-20 10:40:34
https://admin.fedoraproject.org/updates/setroubleshoot-3.0.23-1.fc14

Comment 9 Fedora Update System 2011-01-26 20:59:23 UTC
setroubleshoot-3.0.23-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.