Bug 744541 - SELinux is preventing /usr/lib/thunderbird-3.0/thunderbird-bin from loading /usr/lib/flash-plugin/libflashplayer.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/thunderbird-3.0/thunderbird-bin from loading /...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:60468bf19af...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-09 10:07 UTC by Michael Marx
Modified: 2011-10-10 11:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
installed xinelibs before, perhaps it helps ...
Clone Of:
Environment:
Last Closed: 2011-10-10 11:53:58 UTC
Type: ---


Attachments (Terms of Use)

Description Michael Marx 2011-10-09 10:07:30 UTC
Summary:

SELinux is preventing /usr/lib/thunderbird-3.0/thunderbird-bin from loading
/usr/lib/flash-plugin/libflashplayer.so which requires text relocation.

Detailed Description:

The thunderbird-bin application attempted to load
/usr/lib/flash-plugin/libflashplayer.so which requires text relocation. This is
a potential security problem. Most libraries do not need this permission.
Libraries are sometimes coded incorrectly and request this permission. The
SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/usr/lib/flash-plugin/libflashplayer.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Allowing Access:

If you trust /usr/lib/flash-plugin/libflashplayer.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/flash-plugin/libflashplayer.so'" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t
'/usr/lib/flash-plugin/libflashplayer.so'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/flash-plugin/libflashplayer.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/flash-plugin/libflashplayer.so [ file ]
Source                        thunderbird-bin
Source Path                   /usr/lib/thunderbird-3.0/thunderbird-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           thunderbird-3.0.10-1.fc12
Target RPM Packages           flash-plugin-11.0.1.152-release
Policy RPM                    selinux-policy-3.6.32-127.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.26-175.fc12.i686 #1 SMP Wed Dec
                              1 21:52:04 UTC 2010 i686 i686
Alert Count                   52
First Seen                    Sun 09 Oct 2011 12:00:01 PM CEST
Last Seen                     Sun 09 Oct 2011 12:02:07 PM CEST
Local ID                      ccf6e103-c7ed-47dd-859d-b094d3bfb28e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1318154527.627:367): avc:  denied  { execmod } for  pid=11126 comm="thunderbird-bin" path="/usr/lib/flash-plugin/libflashplayer.so" dev=dm-0 ino=567654 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1318154527.627:367): arch=40000003 syscall=125 success=no exit=-13 a0=a82ca000 a1=fc7000 a2=5 a3=bff75440 items=0 ppid=11122 pid=11126 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="thunderbird-bin" exe="/usr/lib/thunderbird-3.0/thunderbird-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,thunderbird-bin,unconfined_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_t lib_t:file execmod;

Comment 1 Michael Marx 2011-10-09 10:08:42 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
installed xinelibs before, perhaps it helps ...

Comment 2 Miroslav Grepl 2011-10-10 11:53:58 UTC
Fedora12 is no longer supported. Please use a newer version of Fedora.


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