Bug 972505

Summary: SELinux is preventing /usr/bin/wine-preloader from 'unlink' accesses on the file pulse-shm-581205412.
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:005ea4101a84c40b3ab3cc4c2fe64e7ab5bd56dfc78bc7ec9d0174a41cf76ecb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 13:19:28 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:05:28 UTC
Description of problem:
SELinux is preventing /usr/bin/wine-preloader from 'unlink' accesses on the file pulse-shm-581205412.

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

If you believe that wine-preloader should be allowed unlink access on the pulse-shm-581205412 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 firefox.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:user_tmpfs_t:s0
Target Objects                pulse-shm-581205412 [ file ]
Source                        firefox.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-07 01:18:46 PDT
Last Seen                     2013-06-07 01:18:46 PDT
Local ID                      d5870f67-d2a4-4912-9c1e-b6ca26a749b1

Raw Audit Messages
type=AVC msg=audit(1370593126.386:1721): avc:  denied  { unlink } for  pid=22193 comm="firefox.exe" name="pulse-shm-581205412" dev="tmpfs" ino=637217 scontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1370593126.386:1721): arch=i386 syscall=mprotect success=yes exit=0 a0=33f9b0 a1=736c7570 a2=f743e000 a3=33fa4d items=0 ppid=1 pid=22193 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=firefox.exe exe=/usr/bin/wine-preloader subj=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 key=(null)

Hash: firefox.exe,wine_t,user_tmpfs_t,file,unlink

audit2allow

#============= wine_t ==============
allow wine_t user_tmpfs_t:file unlink;

audit2allow -R
require {
	type wine_t;
}

#============= wine_t ==============
userdom_delete_user_tmpfs_files(wine_t)


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:19:28 UTC

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