Bug 969734

Summary: SELinux is preventing /usr/bin/readlink from 'append' accesses on the file /opt/teamviewer8/logfiles/TeamViewer8_Logfile.log.
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:10b72f789f45fa2dd282e32ed1427693123c23f23ae74f8858d7ee6f291c310b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-03 06:04:25 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:41:11 UTC
Description of problem:
SELinux is preventing /usr/bin/readlink from 'append' accesses on the file /opt/teamviewer8/logfiles/TeamViewer8_Logfile.log.

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

If you want to ignore readlink trying to append 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/readlink /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

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

If you believe that readlink should be allowed append 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 readlink /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                system_u:object_r:usr_t:s0
Target Objects                /opt/teamviewer8/logfiles/TeamViewer8_Logfile.log
                              [ file ]
Source                        readlink
Source Path                   /usr/bin/readlink
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.17-8.fc18.x86_64
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-05-31 09:47:27 PDT
Last Seen                     2013-05-31 09:47:27 PDT
Local ID                      500548a0-5cef-4e56-903d-83163273c337

Raw Audit Messages
type=AVC msg=audit(1370018847.694:489): avc:  denied  { append } for  pid=11253 comm="readlink" path="/opt/teamviewer8/logfiles/TeamViewer8_Logfile.log" dev="dm-2" ino=2097424 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file


type=SYSCALL msg=audit(1370018847.694:489): arch=x86_64 syscall=execve success=yes exit=0 a0=e348b0 a1=e35950 a2=e32ec0 a3=20 items=0 ppid=11252 pid=11253 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4294967295 tty=(none) comm=readlink exe=/usr/bin/readlink subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: readlink,initrc_t,usr_t,file,append

audit2allow

#============= initrc_t ==============
allow initrc_t usr_t:file append;

audit2allow -R
require {
	type initrc_t;
}

#============= initrc_t ==============
files_manage_usr_files(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:04:25 UTC

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