Bug 984381 - SELinux is preventing /usr/bin/bash from 'write' accesses on the file /home/user9/.config/teamviewer8/logfiles/TeamViewer8_Logfile.log.
Summary: SELinux is preventing /usr/bin/bash from 'write' accesses on the file /home/u...
Keywords:
Status: CLOSED DUPLICATE of bug 984377
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a457bd588f6d2b534ae664fcf5a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-15 06:10 UTC by Moez Roy
Modified: 2013-07-15 11:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-15 11:15:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-07-15 06:10:59 UTC
Description of problem:
SELinux is preventing /usr/bin/bash from 'write' accesses on the file /home/user9/.config/teamviewer8/logfiles/TeamViewer8_Logfile.log.

*****  Plugin leaks (86.2 confidence) suggests  ******************************

If you want to ignore bash trying to write access the TeamViewer8_Logfile.log file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/bin/bash /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests  ***************************

If you believe that bash should be allowed write access on the TeamViewer8_Logfile.log 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 lsb_release /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/logfiles/TeamViewe
                              r8_Logfile.log [ file ]
Source                        lsb_release
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           teamviewer-8.0.17147-1.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-98.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-201.fc18.x86_64 #1 SMP Fri
                              Jul 5 16:42:02 UTC 2013 x86_64 x86_64
Alert Count                   8
First Seen                    2013-07-11 01:24:22 PDT
Last Seen                     2013-07-13 08:30:52 PDT
Local ID                      5535d0cd-dfb7-4de8-850c-b3d6447fa3eb

Raw Audit Messages
type=AVC msg=audit(1373729452.422:383): avc:  denied  { write } for  pid=1891 comm="wineserver" name="TeamViewer8_Logfile.log" dev="dm-3" ino=45876490 scontext=system_u:system_r:initrc_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file


type=SYSCALL msg=audit(1373729452.422:383): arch=i386 syscall=fstat success=yes exit=ENOSTR a0=991fe48 a1=8841 a2=1b6 a3=991ff40 items=0 ppid=1 pid=1891 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4294967295 tty=(none) comm=wineserver exe=/opt/teamviewer8/tv_bin/wine/bin/wineserver subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: lsb_release,initrc_t,config_home_t,file,write

audit2allow

#============= initrc_t ==============
allow initrc_t config_home_t:file write;

audit2allow -R
require {
	type initrc_t;
}

#============= initrc_t ==============
gnome_manage_home_config(initrc_t)


Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.9-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-07-15 11:15:25 UTC

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


Note You need to log in before you can comment on or make changes to this bug.