Bug 495533 - SELinux: text relocation issue with _pysyncml.so
Summary: SELinux: text relocation issue with _pysyncml.so
Keywords:
Status: CLOSED DUPLICATE of bug 485980
Alias: None
Product: Fedora
Classification: Fedora
Component: taskcoach
Version: 10
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Rakesh Pandit
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-13 18:02 UTC by Matthew Farrellee
Modified: 2009-09-23 11:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-23 11:06:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matthew Farrellee 2009-04-13 18:02:07 UTC
Description of problem:

Whenever I start task coach I get this SELinux alert:

Summary

SELinux is preventing taskcoach from loading /usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so which requires text relocation.

Detailed Description

The taskcoach application attempted to load /usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.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 web page explains how to remove this requirement. You can configure SELinux temporarily to allow /usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so to use relocation as a workaround, until the library is fixed. Please file a bug report against this package.

Allowing Access

If you trust /usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so to run correctly, you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t '/usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.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/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so'"

Fix Command

chcon -t textrel_shlib_t '/usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so'

Additional Information
Source Context:  unconfined_u:unconfined_r:unconfined_t:s0
Target Context:  system_u:object_r:lib_t:s0
Target Objects:  /usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so [ file ]
Source:  taskcoachSource 
Path:  /usr/bin/python
Port:  <Unknown>
Host:  robin.local
Source RPM 
Packages:  python-2.5.2-1.fc10
Target RPM Packages:  taskcoach-0.71.5-1.fc10
Policy RPM:  selinux-policy-3.5.13-53.fc10
Selinux Enabled:  True
Policy Type:  targeted
MLS Enabled:  True
Enforcing Mode:  Enforcing
Plugin Name:  allow_execmod

Raw Audit Messages :node=robin.local type=AVC msg=audit(1239642555.571:2304): avc: denied { execmod } for pid=31104 comm="taskcoach" path="/usr/lib/python2.5/site-packages/taskcoachlib/bin.in/linux/_pysyncml.so" dev=dm-0 ino=430772 scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file 

node=robin.local type=SYSCALL msg=audit(1239642555.571:2304): arch=40000003 syscall=125 success=no exit=-13 a0=6d1a000 a1=8b000 a2=5 a3=bff3a0d0 items=0 ppid=1 pid=31104 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=4 comm="taskcoach" exe="/usr/bin/python" subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null) 

Version-Release number of selected component (if applicable):

$ rpm -q taskcoach
taskcoach-0.71.5-1.fc10.noarch

$ rpm -qa | grep -i selinux
libselinux-debuginfo-2.0.73-1.fc10.i386
selinux-policy-doc-3.5.13-53.fc10.noarch
selinux-policy-3.5.13-53.fc10.noarch
selinux-doc-1.26-1.1.noarch
selinux-policy-targeted-3.5.13-53.fc10.noarch
libselinux-devel-2.0.78-1.fc10.i386
libselinux-2.0.78-1.fc10.i386
libselinux-utils-2.0.78-1.fc10.i386
selinux-policy-minimum-3.5.13-53.fc10.noarch
libselinux-python-2.0.78-1.fc10.i386

Comment 1 Eric Paris 2009-04-13 18:31:52 UTC
http://people.redhat.com/drepper/textrelocs.html

explains what the denial is.  99% of the time the right fix is for the pacakage to fix their build flags to include -fpic.....

Comment 2 Rakesh Pandit 2009-09-23 11:06:07 UTC

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


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