Bug 674122 - [abrt] setroubleshoot-server-3.0.23-1.fc14: allow_execstack.py:92:get_if_text:IndexError: tuple index out of range
Summary: [abrt] setroubleshoot-server-3.0.23-1.fc14: allow_execstack.py:92:get_if_text...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 14
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:77a5aa99
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-31 17:43 UTC by Bryan Bishop
Modified: 2011-02-19 01:25 UTC (History)
34 users (show)

Fixed In Version: setroubleshoot-plugins-3.0.13-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-19 01:25:26 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (824 bytes, text/plain)
2011-01-31 17:43 UTC, Bryan Bishop
no flags Details
Requested setroubleshoot_database.xml (3.78 KB, text/xml)
2011-02-10 17:21 UTC, Bryan Bishop
no flags Details

Description Bryan Bishop 2011-01-31 17:43:15 UTC
abrt version: 1.1.14
architecture: i686
cmdline: /usr/bin/python -Es /usr/bin/sealert -s
comment: The above steps will reproduce this every time.
component: setroubleshoot
executable: /usr/bin/sealert
kernel: 2.6.35.10-74.fc14.i686.PAE
package: setroubleshoot-server-3.0.23-1.fc14
reason: allow_execstack.py:92:get_if_text:IndexError: tuple index out of range
release: Fedora release 14 (Laughlin)
time: 1296493830
uid: 500

backtrace
-----
allow_execstack.py:92:get_if_text:IndexError: tuple index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/setroubleshoot/browser.py", line 648, in on_details_button_clicked
    message = self.alert_list[self.current_alert].format_text()
  File "/usr/lib/python2.7/site-packages/setroubleshoot/signature.py", line 545, in format_text
    txt = self.substitute(p.get_if_text(self.audit_event.records, args))
  File "/usr/share/setroubleshoot/plugins/allow_execstack.py", line 92, in get_if_text
    path = args[0]
IndexError: tuple index out of range

Local variables in innermost frame:
self: <plugins.allow_execstack.plugin object at 0xaffc9ec>
args: ()
avc: [<setroubleshoot.audit_data.AuditRecord object at 0xaf9bb4c>, <setroubleshoot.audit_data.AuditRecord object at 0xaf9bb6c>]

How to reproduce
-----
1. Ran RSSOWL which produced an selinux "permission denied" message about executable stack.
2. SELinux Alert Browser came up about the execstack, though the source process said soffice.bin and now RSSOWL (which uses java) for some reason.
3. Clicked on Details within SELinux alert browser, and received a crash notification from ABRT.

Comment 1 Bryan Bishop 2011-01-31 17:43:17 UTC
Created attachment 476240 [details]
File: backtrace

Comment 2 Tadej Janež 2011-01-31 19:44:24 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. I was browsing through alerts with the "Previous" and "Next" buttons.
2.
3.

Comment 3 joshua 2011-01-31 19:57:23 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
No idea...

Comment 4 Geofrey 2011-02-01 16:33:27 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.viewing some old Secure linux reports
2.deleting them
3.using a Active Directory administrator user

Comment 5 Daniel Walsh 2011-02-01 16:51:13 UTC
This is caused by a mismatch between the plugins and the time the alert was cought.  Can you just list all alerts and delete the allow_execstack alert.  Then the problem will go away.

Comment 6 Markus Schulze 2011-02-01 17:12:12 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. not sure, I changed the boolean "setsebool -P allow_postfix_local_write_mail_spool 1"

Comment 7 Markus Schulze 2011-02-01 17:12:46 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. not sure, I changed the boolean "setsebool -P allow_postfix_local_write_mail_spool 1"

Comment 8 marco 2011-02-01 18:02:04 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Save a file from an email (in this case pdf)
2. Error popup
3.


Comment
-----
Happened different times, even with other files than pdf. just tried to save an attachment from an email

Comment 9 Daniel Walsh 2011-02-01 22:05:10 UTC
This bug
https://bugzilla.redhat.com/show_bug.cgi?id=652297

or this blog will tell you how to fix the allow_execstack SELinux policy problem.


http://danwalsh.livejournal.com/39155.html
http://danwalsh.livejournal.com/38736.html

The setroubleshoot problem is caused by a newer plugin then the when the original execstack happened, I believe.  If you delete the alert and it happens again setroubleshoot will not crash.

Comment 10 Mads Kiilerich 2011-02-02 13:10:49 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
I got this when I cleaned my list of old SE alerts by repeatedly clicking delete. I probably had an execstack alert in the queue.

Comment 11 Mads Kiilerich 2011-02-02 13:16:00 UTC
IMHO the improved handling of allow_execstack itself is fine, but I would like to clarify that it IMHO is not so fine that it isn't backwards compatible.

Comment 12 Daniel Walsh 2011-02-02 16:11:23 UTC
Yes I am fixing that problem.  :^(

Fixed in setroubleshoot-plugins-3.0.13.fc14

Comment 13 Stuart D Gathman 2011-02-02 16:15:40 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Deleted last event
2. Close app
3.

Comment 14 Fedora Update System 2011-02-02 16:31:28 UTC
setroubleshoot-plugins-3.0.13-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/setroubleshoot-plugins-3.0.13-1.fc14

Comment 15 John Margaritopoulos 2011-02-02 19:05:10 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.
2.
3.
.

Comment 16 abugreporter 2011-02-02 19:10:26 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. I was configuring access to a Windows shared folder. No idea how to reproduce it, nor did I try.
2.
3.

Comment 17 David Juran 2011-02-03 01:29:56 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Deleted one avc denial in selinux alert browser

Unknown how reproducible

Comment 18 Fedora Update System 2011-02-03 20:22:27 UTC
setroubleshoot-plugins-3.0.13-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-plugins'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/setroubleshoot-plugins-3.0.13-1.fc14

Comment 19 evonk 2011-02-05 09:19:35 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
Started up Fedora 14
Logged on to it.
Had an SELinux alert.
Clicked on it to look at it.
error was in exec-plugin
wanted to laaok at the details ----crash

Comment
-----
I had an alert in SELINUX and wanted to look at it. Normally you have a description and how to resolve it. When I wanted to look at that it chrashed.

Comment 20 Mark P. 2011-02-05 11:38:18 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Open SE-Policy-Window

Comment
-----
After I get an SE Policy-Alert I want to configure it. I click on the icon in the systray to open the SE Policy-Program

Comment 21 Per Nystrom 2011-02-05 16:47:47 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.  Got SElinux denial notification
2.  Clicked on icon to start troubleshooter
3.  Got crash notification

Comment 22 Hilfan Soeltansyah 2011-02-07 06:02:11 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. install wifi driver
2. install wifi scanner
3. crash happen

Comment 23 Yaroslav 2011-02-07 08:28:33 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Deleted one of the SELinux messages
2.
3.

Comment 24 Stephen Brennom 2011-02-07 15:59:35 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Tried to open the Details option on an SELinux Alert (which usually pops up when Firefox is opened)
2.
3.


Comment
-----
There seems to be some plug-in in Firefox that is stack executable as the SE Linux message pops up all the time.

Comment 25 Daniel Walsh 2011-02-07 16:23:47 UTC
Did you update to the latest plugins?

Comment 26 Stephen Brennom 2011-02-07 16:32:19 UTC
Yes, to the extent that plug-ins are updated in Fedora or Fusion repositories .. I update my system almost daily.

Comment 27 Daniel Walsh 2011-02-07 18:06:51 UTC
The fix is in updates-testing right now.

Comment 28 Daniel Walsh 2011-02-07 18:07:55 UTC
yum -y update --enablerepo=updates-testing setroubleshoot\*

Comment 29 Stephen Brennom 2011-02-07 18:49:14 UTC
Thanks for such a quick response. Update completed as suggested above. The Troubleshoot option in SE Linux Alert now points to nspluginwrapper as the culprit ...  /usr/lib64/nspluginwrapper/plugin-config on my system. It suggests three possible solutions, 1) reporting a bug ("if you do not think /usr/lib64/nspluginwrapper/plugin-config should need to map stack memory that is both writable and executable", 2) allowing unconfined executables to make their stack executable (indicated as "should never be necessary", 3) for now, allowing execstack access on processes labeled unconfined_t (indicated as "should be reported as a bug") 

BTW  ...  I am a long-time Linux Desktop user and enthusiastic supporter of Fedora/Red Hat, but not a computer pro so I may quickly get beyond my basic skill set on this, given the three options above. I certainly do not know which is the most reasonable option, although 2 and 3 certainly look like more potential problems in the making.

Comment 30 wdc 2011-02-07 22:51:54 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. On a freshly rebooted system with NOTHING yet running,
2. I Saw a warning about a security violation, and so I clicked to see it.
3. I clicked on the "Details" button in the SELinux Alert Browser
BOOM! core dump.




Comment
-----
I hope this backtrace enables fixing what was a surprising core dump during what
one would expect is a VERY ordinary activity.

Comment 31 Daniel Walsh 2011-02-08 15:04:16 UTC
setroubleshoot-server-3.0.25-1.fc14 should fix that problem

Comment 32 Hilfan Soeltansyah 2011-02-10 00:27:15 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. install wifi driver
2. install wifi scanner
3. crash happen

Comment 33 Luca Botti 2011-02-10 08:48:03 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Received a sealert warning
2. openened tool to fix
3. crash

Comment 34 Daniel Walsh 2011-02-10 14:38:02 UTC
Please attach /var/lib/setroubleshoot/setroubleshoot_database.xml

Comment 35 Bryan Bishop 2011-02-10 17:21:00 UTC
Hi Daniel, here's my setroubleshoot_database.xml file, I'll attach to this ticket.  I haven't tried reproducing this bug since reported it, and have not tried updating setroubleshoot\* from updates-testing yet.

Comment 36 Bryan Bishop 2011-02-10 17:21:56 UTC
Created attachment 478090 [details]
Requested setroubleshoot_database.xml

Comment 37 Greg Flint 2011-02-12 01:30:52 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Opened 'SELinux Troubleshooter' to see if that's why the Eaton 'Intelligent Power Protector' software isn't working.
2.I scrolled back to message 2 of 3, then forward to message 3 of 3.
3.

Comment 38 Greg Flint 2011-02-12 01:54:57 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Opened 'SELinux Troubleshooter' to see if that's why the Eaton 'Intelligent Power Protector' software isn't working.
2.I scrolled back to message 1 of 2, then forward to message 2 of 2.
3.

Comment 39 Greg Flint 2011-02-12 04:54:46 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Click on SE Linux warning after booting up.
2. Click 'Details' to see more information about the warning

Comment 40 gabicr 2011-02-12 08:46:39 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.trying to see some alerts
2.
3.

Comment 41 Greg Flint 2011-02-12 11:53:45 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. No idea.
2.
3.

Comment 42 Bug Reporter 2011-02-12 20:41:54 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. I was deleting notifications in SELinux
2.
3.

Comment 43 Davide Prade 2011-02-13 08:38:56 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
I don't know.

Comment 44 Alessandro Machado 2011-02-13 19:47:00 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.
2.
3.
8

Comment
-----
8

Comment 45 Douglas Losiewicz 2011-02-14 01:53:06 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.
2.
3.
All I did was reboot and got these crash messages.....

Comment 46 Hilfan Soeltansyah 2011-02-14 16:58:07 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. install wifi driver
2. install wifi scanner
3. crash happen

Comment 47 stevdrey 2011-02-15 03:17:52 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
I try to see the information and the program crash

Comment 48 Lukas Redynk 2011-02-15 08:48:27 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Clicked 'Ignore' on alert view page
2. Then clicked 'Previous error'
3.

Comment 49 giu.senese 2011-02-15 09:31:43 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
I don't remember :(

Comment 50 bengt 2011-02-15 20:44:09 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Just handling sel warnings
2.
3.

Comment 51 artishock 2011-02-15 20:54:45 UTC
Package: setroubleshoot-server-3.0.15-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.instalar wine (no hubo problemas aquí)
2.abrir "mspaint.exe"
3.selinux alerta aparece
4.caída

Comment 52 Michael Z 2011-02-15 23:58:46 UTC
Package: setroubleshoot-server-3.0.19-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Was just looking at the log of errors from the SELinux tool.
2. Did a relabel as suggested by the SELinux tool of my home directories
3. Upon browsing further with the SELinux tool it crashed


Comment
-----
Also happened without the relabel of home.

Comment 53 Toshi 2011-02-17 06:55:01 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. Logged out after update
2. Logged back in after logging out.
3.


Comment
-----
logged out after an update to the system. I logged back into the system and SElinux crashed.  This came up.

Comment 54 jameshusby 2011-02-18 01:29:51 UTC
Package: setroubleshoot-server-3.0.25-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.no idea
2.
3.

Comment 55 Fedora Update System 2011-02-19 01:25:18 UTC
setroubleshoot-plugins-3.0.13-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.