Bug 463038 - Swfdec triggers an SELinux violation due to executable stack
Summary: Swfdec triggers an SELinux violation due to executable stack
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: swfdec
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brian Pepple
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10Blocker, F10FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2008-09-21 00:36 UTC by Ben Gamari
Modified: 2013-01-10 04:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-11-04 18:48:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Alert file from setroubleshoot (3.64 KB, text/plain)
2008-09-21 00:38 UTC, Ben Gamari
no flags Details

Description Ben Gamari 2008-09-21 00:36:42 UTC
Description of problem:
Attempting to use any embedded swfdec instance in firefox (e.g. YouTube), triggers an SELinux denial and freezes the browser. The only solution is to kill firefox.

Comment 1 Ben Gamari 2008-09-21 00:38:15 UTC
Created attachment 317298 [details]
Alert file from setroubleshoot

Comment 2 Ben Gamari 2008-09-21 00:45:10 UTC
Following setroubleshoot's advice (running chcon -t unconfined_execmem_exec_t '/usr/lib64/firefox-3.0.1/firefox') seems to fix the issue although I definitely don't like the thought of my browser being able to execute from the stack. Moreover, setroubleshoot's description claims that an executable stack should never be necessary. Unfortunately, I wasn't able to find any libraries with the execstack flag set so I wasn't able to try clearing it. Does swfdec really need an execstack.

Comment 3 Matt Domsch 2008-10-25 04:01:59 UTC
yet another execmem programming problem highlighted by selinux.  Seems we've found a few of these lately...

Comment 4 Daniel Walsh 2008-10-27 14:55:02 UTC
The problem here is that flash plugin requires execmem, a better solution is to install nspluginwrapper and run flash in a separate process that is confined.

After you install the plugin wrapper you should relabel your home directory.

restorecon -R -v ~/

Comment 5 Daniel Walsh 2008-10-29 17:58:01 UTC
You should really report a bug to adobe so we can get them to fix it or tell us why they can not.

Sadly I have to turn off this checking in 

selinux-policy-3.5.13-10.fc10

You  can turn it off by executing setsebool -P allow_execstack 1

Comment 6 Jesse Keating 2008-10-29 18:30:25 UTC
Re-opening to Modified until the build is actually tagged for rawhide.

Comment 7 Bill Nottingham 2008-11-04 18:48:05 UTC
Which it is now.


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