Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 598952 - SELinux is preventing /usr/bin/wine-preloader from loading /home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL which requires text relocation.
SELinux is preventing /usr/bin/wine-preloader from loading /home/robertONLY/....
Status: CLOSED CANTFIX
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
13
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:a90a520c217...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-02 08:10 EDT by robert fairb
Modified: 2010-06-02 08:31 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-02 08:19:11 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 robert fairb 2010-06-02 08:10:47 EDT
Summary:

SELinux is preventing /usr/bin/wine-preloader from loading
/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL which
requires text relocation.

Detailed Description:

The _INS5176._MP application attempted to load
/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.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
/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL to use
relocation as a workaround, until the library is fixed. Please file a bug
report.

Allowing Access:

If you trust
/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL to run
correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t
'/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.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
'/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL'"

Fix Command:

chcon -t textrel_shlib_t
'/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home/robertONLY/.wine/drive_c/users/robertONLY/Te
                              mp/_ISTMP0.DIR/8519.DLL [ file ]
Source                        _INS5176._MP
Source Path                   /usr/bin/wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           wine-core-1.1.38-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-21.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.5-112.fc13.i686.PAE #1 SMP Thu May 27
                              02:56:20 UTC 2010 i686 i686
Alert Count                   3
First Seen                    Tue 01 Jun 2010 09:06:54 AM MDT
Last Seen                     Tue 01 Jun 2010 09:07:07 AM MDT
Local ID                      75ecf593-f73f-4f52-9be6-e5b0b387fa34
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1275404827.227:23787): avc:  denied  { execmod } for  pid=3452 comm="_INS5176._MP" path="/home/robertONLY/.wine/drive_c/users/robertONLY/Temp/_ISTMP0.DIR/8519.DLL" dev=dm-3 ino=1049415 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1275404827.227:23787): arch=40000003 syscall=125 success=no exit=-13 a0=3a0000 a1=1000 a2=5 a3=0 items=0 ppid=3447 pid=3452 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="_INS5176._MP" exe="/usr/bin/wine-preloader" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,_INS5176._MP,unconfined_execmem_t,user_home_t,file,execmod
audit2allow suggests:

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

allow unconfined_execmem_t user_home_t:file execmod;
Comment 1 Daniel Walsh 2010-06-02 08:19:11 EDT
Turn on the boolean allow_execmod.

# setsebool -P allow_execmod 1

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