Bug 972503

Summary: SELinux is preventing /usr/bin/wine-preloader from write, open access on the file /home/user9/.wine/drive_c/users/user9/Application Data/wine_gecko/places.sqlite-wal.
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7fd647ffbb976c2f43e8a9c51fec8b658f89ae5ab3bb28ccf0f5bdecd9bb6ea5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 13:15:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Moez Roy 2013-06-09 19:03:51 UTC
Description of problem:
SELinux is preventing /usr/bin/wine-preloader from write, open access on the file /home/user9/.wine/drive_c/users/user9/Application Data/wine_gecko/places.sqlite-wal.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that wine-preloader should be allowed write open access on the places.sqlite-wal file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep iexplore.exe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:wine_home_t:s0
Target Objects                /home/user9/.wine/drive_c/users/user9/Application
                              Data/wine_gecko/places.sqlite-wal [ file ]
Source                        iexplore.exe
Source Path                   /usr/bin/wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           wine-core-1.5.29-1.fc18.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-97.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.x86_64 #1 SMP Fri
                              May 24 20:10:49 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-06-08 00:50:59 PDT
Last Seen                     2013-06-08 00:50:59 PDT
Local ID                      ccaad906-6d40-47ee-8687-068450c73f5a

Raw Audit Messages
type=AVC msg=audit(1370677859.197:2082): avc:  denied  { write open } for  pid=18888 comm="iexplore.exe" name="places.sqlite-wal" dev="dm-3" ino=46137935 scontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:wine_home_t:s0 tclass=file


type=SYSCALL msg=audit(1370677859.197:2082): arch=i386 syscall=listxattr success=yes exit=0 a0=5e a1=8038 a2=0 a3=23fdff8 items=0 ppid=1 pid=18888 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=iexplore.exe exe=/usr/bin/wine-preloader subj=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 key=(null)

Hash: iexplore.exe,wine_t,wine_home_t,file,write,open

audit2allow

#============= wine_t ==============
allow wine_t wine_home_t:file { write open };

audit2allow -R
require {
	type wine_t;
	type wine_home_t;
	class file { write open };
}

#============= wine_t ==============
allow wine_t wine_home_t:file { write open };


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-06-11 13:15:45 UTC

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