Bug 539824 - SELinux is preventing /opt/Komodo-Edit-5/lib/mozilla/komodo-bin from loading /opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.so which requires text relocation.
Summary: SELinux is preventing /opt/Komodo-Edit-5/lib/mozilla/komodo-bin from loading ...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:215451acc11...
Depends On:
TreeView+ depends on / blocked
Reported: 2009-11-21 08:02 UTC by George Sakkis
Modified: 2009-12-02 04:40 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-49.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-12-01 16:40:54 UTC

Attachments (Terms of Use)

Description George Sakkis 2009-11-21 08:02:18 UTC

SELinux is preventing /opt/Komodo-Edit-5/lib/mozilla/komodo-bin from loading
/opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.so which requires
text relocation.

Detailed Description:

The komodo-bin application attempted to load
/opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.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
/opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.so to use
relocation as a workaround, until the library is fixed. Please file a bug

Allowing Access:

If you trust /opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.so to
run correctly, you can change the file context to textrel_shlib_t. "chcon -t
'/opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.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

Fix Command:

chcon -t textrel_shlib_t

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
Target Context                system_u:object_r:lib_t:s0
Target Objects                /opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-
                              dynload/_ssl.so [ file ]
Source                        komodo-bin
Source Path                   /opt/Komodo-Edit-5/lib/mozilla/komodo-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP Sat Nov
                              7 21:41:45 EST 2009 i686 i686
Alert Count                   2
First Seen                    Sat 21 Nov 2009 11:59:46 AM EET
Last Seen                     Sat 21 Nov 2009 11:59:46 AM EET
Local ID                      bd8285df-f86a-44d1-8e19-c6c286ab3f7f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258797586.50:17901): avc:  denied  { execmod } for  pid=2060 comm="komodo-bin" path="/opt/Komodo-Edit-5/lib/python/lib/python2.6/lib-dynload/_ssl.so" dev=sda3 ino=88687 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1258797586.50:17901): arch=40000003 syscall=125 success=no exit=-13 a0=11ee000 a1=119000 a2=5 a3=bf8a68d0 items=0 ppid=2054 pid=2060 auid=500 uid=500 gid=100 euid=500 suid=500 fsuid=500 egid=100 sgid=100 fsgid=100 tty=pts0 ses=1 comm="komodo-bin" exe="/opt/Komodo-Edit-5/lib/mozilla/komodo-bin" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)

Hash String generated from  selinux-policy-3.6.32-41.fc12,allow_execmod,komodo-bin,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_execmem_t ==============
allow unconfined_execmem_t lib_t:file execmod;

Comment 1 Daniel Walsh 2009-11-23 13:58:12 UTC
Fixed labeling to textrel_shlib_t as described in alert

Fixed in selinux-policy-3.6.32-48.fc12.noarch

Comment 2 Fedora Update System 2009-11-23 23:39:02 UTC
selinux-policy-3.6.32-49.fc12 has been submitted as an update for Fedora 12.

Comment 3 Fedora Update System 2009-11-25 15:22:19 UTC
selinux-policy-3.6.32-49.fc12 has been pushed to the Fedora 12 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 selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12131

Comment 4 Fedora Update System 2009-12-02 04:33:31 UTC
selinux-policy-3.6.32-49.fc12 has been pushed to the Fedora 12 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.