Tremulous Forum
Media => Mapping Center => Topic started by: Winnie the Pooh on March 20, 2009, 09:06:08 am
-
This doesn't really fit here, but I downloaded a gtkradiant RPM for Linux (x32).
After installing it, I click on it and get this:
Summary:
SELinux is preventing radiant.x86 from loading /opt/gtkradiant/modules/image.so
which requires text relocation.
Detailed Description:
The radiant.x86 application attempted to load /opt/gtkradiant/modules/image.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/gtkradiant/modules/image.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 /opt/gtkradiant/modules/image.so to run correctly, you can change
the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/gtkradiant/modules/image.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 '/opt/gtkradiant/modules/image.so'"
Fix Command:
chcon -t textrel_shlib_t '/opt/gtkradiant/modules/image.so'
Additional Information:
Source Context unconfined_u:unconfined_r:unconfined_t:s0
Target Context system_u:object_r:lib_t:s0
Target Objects /opt/gtkradiant/modules/image.so [ file ]
Source radiant.x86
Source Path /opt/gtkradiant/radiant.x86
Port <Unknown>
Host KingTut.winniethepooh
Source RPM Packages gtkradiant-1.5.0-7
Target RPM Packages gtkradiant-1.5.0-7
Policy RPM selinux-policy-3.5.13-18.fc10
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name allow_execmod
Host Name KingTut.winniethepooh
Platform Linux KingTut.winniethepooh 2.6.27.5-117.fc10.i686
#1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686
Alert Count 3
First Seen Thu 19 Mar 2009 11:54:18 AM HST
Last Seen Thu 19 Mar 2009 10:01:03 PM HST
Local ID 127a075b-8d03-4f2b-a346-8bd40c4873e3
Line Numbers
Raw Audit Messages
node=KingTut.winniethepooh type=AVC msg=audit(1237536063.134:50): avc: denied { execmod } for pid=4407 comm="radiant.x86" path="/opt/gtkradiant/modules/image.so" dev=dm-0 ino=172338 scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file
node=KingTut.winniethepooh type=SYSCALL msg=audit(1237536063.134:50): arch=40000003 syscall=125 success=no exit=-13 a0=1125000 a1=23000 a2=5 a3=bfb0a1f0 items=0 ppid=1 pid=4407 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="radiant.x86" exe="/opt/gtkradiant/radiant.x86" subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null)
When I type that command into the terminal, It tells me I don't have the privileges. I need to be logged in as power user I guess..
Anyone have an idea?
-
You have SELinux in enforcing mode, and it is disallowing text relocation. Follow the instructions under "Allowing Access" to fix this.