Bug 592945 - SELinux is preventing /usr/local/bin/wine-preloader from loading /root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.dll which requires text relocation.
SELinux is preventing /usr/local/bin/wine-preloader from loading /root/.wine/...
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
12
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:ecf5b339fe0...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-17 08:54 EDT by vignesh
Modified: 2010-05-17 09:02 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-17 09:02:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description vignesh 2010-05-17 08:54:40 EDT
Summary:

SELinux is preventing /usr/local/bin/wine-preloader from loading
/root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.dll which requires text
relocation.

Detailed Description:

The setup.exe application attempted to load
/root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.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/nsuf36.tmp/UserInfo.dll to use relocation as a
workaround, until the library is fixed. Please file a bug report.

Allowing Access:

If you trust /root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.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/nsuf36.tmp/UserInfo.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/nsuf36.tmp/UserInfo.dll'"

Fix Command:

chcon -t textrel_shlib_t
'/root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.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/nsuf36.tmp/UserIn
                              fo.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.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.i686.PAE #1 SMP
                              Sat Nov 7 21:25:57 EST 2009 i686 i686
Alert Count                   2
First Seen                    Sun 25 Apr 2010 12:07:38 PM IST
Last Seen                     Sun 25 Apr 2010 12:07:38 PM IST
Local ID                      238879c8-adf3-4ef5-9e4d-a278aa459d5c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1272177458.407:58): avc:  denied  { execmod } for  pid=2227 comm="setup.exe" path="/root/.wine/drive_c/windows/temp/nsuf36.tmp/UserInfo.dll" dev=dm-0 ino=169755 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(1272177458.407:58): arch=40000003 syscall=125 success=no exit=-13 a0=10000000 a1=1000 a2=5 a3=bfc015e8 items=0 ppid=2226 pid=2227 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 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.32-41.fc12,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 Daniel Walsh 2010-05-17 09:02:06 EDT
yum -y update

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