Bug 463038

Summary: Swfdec triggers an SELinux violation due to executable stack
Product: [Fedora] Fedora Reporter: Ben Gamari <bgamari>
Component: swfdecAssignee: Brian Pepple <bdpepple>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell, dwalsh, matt_domsch, notting
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-04 18:48:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 438943    
Attachments:
Description Flags
Alert file from setroubleshoot none

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.