Bug 969744

Summary: SELinux is preventing /opt/teamviewer8/tv_bin/wine/bin/wine-preloader from 'read' accesses on the lnk_file /home/user9/.config/teamviewer8/dosdevices/c:.
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:99900cbbf3a5851bf2c3906be442fa65a3d90f3e8cd8c8fa862069a0f0d26bfe
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-03 06:05:27 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-02 05:47:41 UTC
Description of problem:
SELinux is preventing /opt/teamviewer8/tv_bin/wine/bin/wine-preloader from 'read' accesses on the lnk_file /home/user9/.config/teamviewer8/dosdevices/c:.

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

If you believe that wine-preloader should be allowed read access on the c: lnk_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 wine /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:initrc_t:s0
Target Context                unconfined_u:object_r:config_home_t:s0
Target Objects                /home/user9/.config/teamviewer8/dosdevices/c: [
                              lnk_file ]
Source                        wine
Source Path                   /opt/teamviewer8/tv_bin/wine/bin/wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           teamviewer-8.0.17147-1.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                   2
First Seen                    2013-05-31 09:47:27 PDT
Last Seen                     2013-05-31 09:48:35 PDT
Local ID                      08970b30-c602-41c2-b30a-35a1fa9bf2a7

Raw Audit Messages
type=AVC msg=audit(1370018915.32:513): avc:  denied  { read } for  pid=11249 comm="TeamViewer_Desk" name="c:" dev="dm-3" ino=45876366 scontext=system_u:system_r:initrc_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1370018915.32:513): arch=i386 syscall=llistxattr success=yes exit=0 a0=1a1128 a1=32f3e8 a2=f75df000 a3=1a1128 items=0 ppid=11097 pid=11249 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4294967295 tty=(none) comm=TeamViewer_Desk exe=/opt/teamviewer8/tv_bin/wine/bin/wine-preloader subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: wine,initrc_t,config_home_t,lnk_file,read

audit2allow

#============= initrc_t ==============
allow initrc_t config_home_t:lnk_file read;

audit2allow -R
require {
	type initrc_t;
}

#============= initrc_t ==============
gnome_read_home_config(initrc_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-03 06:05:27 UTC

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