Bug 670714

Summary: SELinux is preventing /opt/Focus Booster/bin/Focus Booster from loading /opt/Adobe AIR/Versions/1.0/Resources/libcurl.so which requires text relocation.
Product: [Fedora] Fedora Reporter: J <pepensado>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e74ab3cab95d0ef4a53ae98d21f19838797ecededbd59ae13f1a20e7bf89d629
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-19 09:52:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description J 2011-01-19 03:41:54 UTC
Summary:

SELinux is preventing /opt/Focus Booster/bin/Focus Booster from loading
/opt/Adobe AIR/Versions/1.0/Resources/libcurl.so which requires text relocation.

Detailed Description:

The 466F63757320426F6F73746572 application attempted to load /opt/Adobe
AIR/Versions/1.0/Resources/libcurl.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://www.akkadia.org/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/Adobe AIR/Versions/1.0/Resources/libcurl.so to use relocation as a
workaround, until the library is fixed. Please file a bug report.

Allowing Access:

If you trust /opt/Adobe AIR/Versions/1.0/Resources/libcurl.so to run correctly,
you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/Adobe AIR/Versions/1.0/Resources/libcurl.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/Adobe.AIR/Versions/1.0/Resources/libcurl.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/Adobe AIR/Versions/1.0/Resources/libcurl.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                /opt/Adobe AIR/Versions/1.0/Resources/libcurl.so [
                              file ]
Source                        466F63757320426F6F73746572
Source Path                   /opt/Focus Booster/bin/Focus Booster
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           com.focusboosterapp.focusbooster.8e5f79c899747ad22
                              e21db62aa496926da6bbc64.1-1.1-1
Target RPM Packages           adobeair-2.5.1-17730
Policy RPM                    selinux-policy-3.7.19-76.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-66.fc13.i686 #1 SMP
                              Wed Dec 15 07:40:25 UTC 2010 i686 i686
Alert Count                   6
First Seen                    Mon 17 Jan 2011 06:11:11 CST
Last Seen                     Tue 18 Jan 2011 21:34:49 CST
Local ID                      9e4c7995-e2f2-41fc-a48a-ac519284d5c2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1295408089.680:19): avc:  denied  { execmod } for  pid=2036 comm=466F63757320426F6F73746572 path=2F6F70742F41646F6265204149522F56657273696F6E732F312E302F5265736F75726365732F6C69626375726C2E736F dev=dm-0 ino=37257 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(1295408089.680:19): arch=40000003 syscall=125 success=no exit=-13 a0=8464000 a1=13e000 a2=5 a3=bfa70e20 items=0 ppid=1729 pid=2036 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=466F63757320426F6F73746572 exe=2F6F70742F466F63757320426F6F737465722F62696E2F466F63757320426F6F73746572 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,466F63757320426F6F73746572,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 Miroslav Grepl 2011-01-19 09:52:58 UTC
Either execute

Fix Command:

chcon -t textrel_shlib_t '/opt/Adobe AIR/Versions/1.0/Resources/libcurl.so'

or

turn on the allow_execmod boolean.

setsebool -P allow_execmod 1