Bug 972504

Summary: SELinux is preventing /usr/bin/wine-preloader from 'getattr' accesses 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:2b8e2bc7af2683504e0ef9fdd4413c1bccc2646664cb770628bda25f1d74f4a4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 13:15:53 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:04:20 UTC
Description of problem:
SELinux is preventing /usr/bin/wine-preloader from 'getattr' accesses 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 getattr 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                      f4941c20-2ace-47b4-9d00-cb84bd27ea87

Raw Audit Messages
type=AVC msg=audit(1370677859.197:2081): avc:  denied  { getattr } for  pid=18888 comm="iexplore.exe" path=2F686F6D652F75736572392F2E77696E652F64726976655F632F75736572732F75736572392F4170706C69636174696F6E20446174612F77696E655F6765636B6F2F706C616365732E73716C6974652D77616C 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:2081): arch=i386 syscall=removexattr success=yes exit=0 a0=5e a1=23fdedc a2=f75ab000 a3=23fe000 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,getattr

audit2allow

#============= wine_t ==============
allow wine_t wine_home_t:file getattr;

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

#============= wine_t ==============
allow wine_t wine_home_t:file getattr;


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:53 UTC

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