Bug 561208 - SELinux is preventing java from loading /home/oliver/.webex/824/libmsess.so which requires text relocation.
Summary: SELinux is preventing java from loading /home/oliver/.webex/824/libmsess.so w...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ead81082453...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-03 02:17 UTC by Oliver Ruebenacker
Modified: 2010-02-05 15:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-03 11:24:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Oliver Ruebenacker 2010-02-03 02:17:05 UTC
Summary:

SELinux is preventing java from loading /home/oliver/.webex/824/libmsess.so
which requires text relocation.

Detailed Description:

The java application attempted to load /home/oliver/.webex/824/libmsess.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
/home/oliver/.webex/824/libmsess.so to use relocation as a workaround, until the
library is fixed. Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /home/oliver/.webex/824/libmsess.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/home/oliver/.webex/824/libmsess.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 '/home/oliver/.webex/824/libmsess.so'"

Fix Command:

chcon -t textrel_shlib_t '/home/oliver/.webex/824/libmsess.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t
                              :SystemLow-SystemHigh
Target Context                unconfined_u:object_r:user_home_dir_t:SystemLow
Target Objects                /home/oliver/.webex/824/libmsess.so [ file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/ja
                              va
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           java-1.6.0-openjdk-1.6.0.0-7.b12.fc10
Target RPM Packages           
Policy RPM                    selinux-policy-3.5.13-40.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.27.12-170.2.5.fc10.i686 #1 SMP
                              Wed Jan 21 02:09:37 EST 2009 i686 i686
Alert Count                   2
First Seen                    Thu 05 Feb 2009 11:07:54 AM EST
Last Seen                     Thu 05 Feb 2009 11:07:54 AM EST
Local ID                      e0f40b1d-6030-46de-9c7e-39a025f9501d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1233850074.182:40): avc:  denied  { execmod } for  pid=12898 comm="java" path="/home/oliver/.webex/824/libmsess.so" dev=dm-0 ino=3146605 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1233850074.182:40): arch=40000003 syscall=125 success=no exit=-13 a0=290a000 a1=2bd000 a2=5 a3=18cd510 items=0 ppid=3418 pid=12898 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="java" exe="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.5.13-40.fc10,allow_execmod,java,unconfined_execmem_t,user_home_dir_t,file,execmod
audit2allow suggests:

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

allow unconfined_execmem_t user_home_dir_t:file execmod;

Comment 1 Miroslav Grepl 2010-02-03 11:24:29 UTC
You are reporting an F12 bug with F10 policy.

*** This bug has been marked as a duplicate of bug 538428 ***


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