Bug 565369 - SELinux is preventing Picasa3.exe from loading /opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so which requires text relocation.
Summary: SELinux is preventing Picasa3.exe from loading /opt/google/picasa/3.0/wine/li...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:11b12c00216...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-15 03:17 UTC by vlapan
Modified: 2010-02-15 09:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-15 09:48:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description vlapan 2010-02-15 03:17:15 UTC
Summary:

SELinux is preventing Picasa3.exe from loading
/opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so which requires text
relocation.

Detailed Description:

The Picasa3.exe application attempted to load
/opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.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/google/picasa/3.0/wine/lib/wine/rsaenh.dll.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/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so to run
correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t '/opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.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/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so
                              [ file ]
Source                        Picasa3.exe
Source Path                   <Unknown>
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           picasa-3.0.5744-02
Target RPM Packages           picasa-3.0.5744-02
Policy RPM                    selinux-policy-3.6.12-83.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.8-64.fc11.i586 #1 SMP Fri
                              Sep 25 04:30:19 EDT 2009 i686 i686
Alert Count                   6
First Seen                    Fri 02 Oct 2009 09:34:11 AM PDT
Last Seen                     Fri 02 Oct 2009 09:34:11 AM PDT
Local ID                      dd1fa811-b5c0-415c-bce9-4dae7fef2e4f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1254501251.759:1470): avc:  denied  { execmod } for  pid=14508 comm="Picasa3.exe" path="/opt/google/picasa/3.0/wine/lib/wine/rsaenh.dll.so" dev=dm-0 ino=4317586 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1254501251.759:1470): arch=40000003 syscall=125 success=no exit=-13 a0=61107000 a1=1000 a2=7 a3=49 items=0 ppid=1 pid=14508 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="Picasa3.exe" exe="/opt/google/picasa/3.0/wine/bin/wine-preloader" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,Picasa3.exe,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_execmem_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_execmem_t lib_t:file execmod;

Comment 1 Miroslav Grepl 2010-02-15 09:48:34 UTC

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


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