Bug 543418

Summary: SELinux is preventing flock-bin from loading /usr/lib/firefox/plugins/libractrl.so which requires text relocation.
Product: [Fedora] Fedora Reporter: Iftikhar <rana.iftikhar.ahmad>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5a697e7b80b9edbe293dc2bb272b1dc97235d665a783b90a8c61e51ba7465537
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-02 11:16:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Iftikhar 2009-12-02 11:09:33 UTC
Summary:

SELinux is preventing flock-bin from loading
/usr/lib/firefox/plugins/libractrl.so which requires text relocation.

Detailed Description:

The flock-bin application attempted to load
/usr/lib/firefox/plugins/libractrl.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
/usr/lib/firefox/plugins/libractrl.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 /usr/lib/firefox/plugins/libractrl.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/firefox/plugins/libractrl.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/firefox/plugins/libractrl.so'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/firefox/plugins/libractrl.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/firefox/plugins/libractrl.so [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           logmein-client-1.0.387-1
Policy RPM                    selinux-policy-3.5.13-53.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.27.21-170.2.56.fc10.i686
                              #1 SMP Mon Mar 23 23:37:54 EDT 2009 i686 i686
Alert Count                   14
First Seen                    Mon 12 Jan 2009 12:29:34 PM GMT
Last Seen                     Fri 03 Apr 2009 03:16:43 PM BST
Local ID                      9ede610c-2f83-4ca9-a7c0-c01cdfe63109
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1238768203.534:43): avc:  denied  { execmod } for  pid=3286 comm="flock-bin" path="/usr/lib/firefox/plugins/libractrl.so" dev=dm-0 ino=23601640 scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1238768203.534:43): arch=40000003 syscall=125 success=no exit=-13 a0=48e0000 a1=694000 a2=5 a3=bfe99f50 items=0 ppid=3280 pid=3286 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="flock-bin" exe="/usr/lib/flock/flock-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-53.fc10,allow_execmod,npviewer.bin,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-02 11:16:37 UTC

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