Bug 646813 - SELinux is preventing /opt/Yammer/bin/Yammer from loading /opt/Adobe AIR/Versions/1.0/Resources/libcurl.so which requires text relocation.
Summary: SELinux is preventing /opt/Yammer/bin/Yammer from loading /opt/Adobe AIR/Vers...
Keywords:
Status: CLOSED DUPLICATE of bug 646811
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6a756ee92ff...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-26 11:14 UTC by Daniel Demus
Modified: 2010-10-26 11:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-26 11:33:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Demus 2010-10-26 11:14:35 UTC
Summary:

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

Detailed Description:

The Yammer 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                        Yammer
Source Path                   /opt/Yammer/bin/Yammer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           yammer.2782ad3edb99182da9e10666691f7e39c8dba6a3.1-
                              271935-1
Target RPM Packages           adobeair-2.5.0-16600
Policy RPM                    selinux-policy-3.7.19-65.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-61.fc13.x86_64 #1 SMP
                              Tue Oct 19 04:06:30 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 26 Oct 2010 13:12:07 CEST
Last Seen                     Tue 26 Oct 2010 13:12:07 CEST
Local ID                      107ca7c3-6103-4b94-9c82-38a4981795db
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1288091527.602:57): avc:  denied  { execmod } for  pid=30259 comm="Yammer" path=2F6F70742F41646F6265204149522F56657273696F6E732F312E302F5265736F75726365732F6C69626375726C2E736F dev=sda2 ino=276002 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(1288091527.602:57): arch=40000003 syscall=125 success=no exit=-13 a0=5af000 a1=13e000 a2=5 a3=ffccaa40 items=0 ppid=1 pid=30259 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="Yammer" exe="/opt/Yammer/bin/Yammer" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,Yammer,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 2010-10-26 11:33:03 UTC

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


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