Bug 544919 - SELinux is preventing setup.exe from loading /root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL which requires text relocation.
Summary: SELinux is preventing setup.exe from loading /root/.wine/drive_c/windows/temp...
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:6bdd82b9a59...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-07 03:06 UTC by Daya Shanker Prasad
Modified: 2009-12-09 15:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-07 09:47:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daya Shanker Prasad 2009-12-07 03:06:52 UTC
Summary:

SELinux is preventing setup.exe from loading
/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL which requires text
relocation.

Detailed Description:

The setup.exe application attempted to load
/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL 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
/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL 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 /root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL to run
correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t '/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL'"
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
'/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL'"

Fix Command:

chcon -t textrel_shlib_t
'/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/.wine/drive_c/windows/temp/Setup00000008/OSE
                              TUPUI.DLL [ file ]
Source                        setup.exe
Source Path                   /usr/local/bin/wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
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.i686.PAE #1
                              SMP Fri Sep 25 04:56:58 EDT 2009 i686 i686
Alert Count                   1
First Seen                    Wed 14 Oct 2009 12:45:16 PM IST
Last Seen                     Wed 14 Oct 2009 12:45:16 PM IST
Local ID                      faa1e8dc-1387-49ab-94c1-72276e7168db
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1255504516.68:26679): avc:  denied  { execmod } for  pid=12963 comm="setup.exe" path="/root/.wine/drive_c/windows/temp/Setup00000008/OSETUPUI.DLL" dev=sda2 ino=1335988 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1255504516.68:26679): arch=40000003 syscall=125 success=no exit=-13 a0=ef0000 a1=1000 a2=5 a3=ef0000 items=0 ppid=2306 pid=12963 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm="setup.exe" exe="/usr/local/bin/wine-preloader" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-83.fc11,allow_execmod,setup.exe,unconfined_t,admin_home_t,file,execmod
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-07 09:47:11 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.