Bug 831898

Summary: Mysql error watching live TV in mythfrontend
Product: [Fedora] Fedora Reporter: David Highley <david.m.highley>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-28 12:30:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Highley 2012-06-14 03:13:33 UTC
Description of problem:


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.10.0-86.fc16.noarch

How reproducible:
Seems to happen every time initiate viewing of live TV

Steps to Reproduce:
1.
2.
3.
  
Actual results:
time->Wed Jun 13 19:59:37 2012
type=SYSCALL msg=audit(1339642777.143:269): arch=c000003e syscall=21 success=no exit=-13 a0=7feb401329f0 a1=4 a2=7feb401329fe a3=1c items=0 ppid=1 pid=5583 auid=4294967295 uid=27 gid=27 euid=27 suid=27 fsuid=27 egid=27 sgid=27 fsgid=27 tty=(none) ses=4294967295 comm="mysqld" exe="/usr/libexec/mysqld" subj=system_u:system_r:mysqld_t:s0 key=(null)
type=AVC msg=audit(1339642777.143:269): avc:  denied  { read } for  pid=5583 comm="mysqld" name="unix" dev="proc" ino=4026532000 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file

Expected results:


Additional info:
Fixed by adding the following polcy:
module my2sqld 1.0;

require {
 	type proc_net_t;
 	type mysqld_t;
	class file { read };
}

#============= mysqld_t ==============
#!!!! This avc is allowed in the current policy

allow mysqld_t proc_net_t:file read;

Comment 1 Daniel Walsh 2012-06-14 19:00:49 UTC
This is allowed in F17.