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.
Summary: SELinux is preventing /usr/bin/wine-preloader from loading /home/robertONLY/....
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:a90a520c217...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-02 12:10 UTC by robert fairb
Modified: 2010-06-02 12:31 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2010-06-02 12:19:11 UTC

Attachments (Terms of Use)

Description robert fairb 2010-06-02 12:10:47 UTC

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

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
'/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

Fix Command:

chcon -t textrel_shlib_t

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
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)
                     #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 12:19:11 UTC
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.