Bug 893303

Summary: munin selinux blocks IPC
Product: [Fedora] Fedora Reporter: Jordi Llonch <llonchj>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, drjohnson1, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-04 10:33:04 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:
Attachments:
Description Flags
su -c '(grep avc: /var/log/messages; ausearch -m avc -ts today)' | gzip > /tmp/munin-avc.txt.gz none

Description Jordi Llonch 2013-01-09 05:09:54 UTC
Created attachment 675255 [details]
su -c '(grep avc: /var/log/messages; ausearch -m avc -ts today)' | gzip > /tmp/munin-avc.txt.gz

Description of problem:

After installing munin-node-2.0.9-3.fc17.noarch and setting up /etc/munin/plugins-conf.d/mysql, on a munin-update the munin-node.log shows:

2013/01/09-15:20:08 [4997] Service 'mysql_innodb_log' exited with status 13/0.
2013/01/09-15:20:08 [4997] Error output from mysql_innodb_rows:
2013/01/09-15:20:08 [4997] 	Failed to create share at /usr/share/perl5/vendor_perl/Cache/SharedMemoryBackend.pm line 85
2013/01/09-15:20:08 [4997] Service 'mysql_innodb_rows' exited with status 13/0.
2013/01/09-15:20:08 [4997] Error output from mysql_innodb_rows:
2013/01/09-15:20:08 [4997] 	Failed to create share at /usr/share/perl5/vendor_perl/Cache/SharedMemoryBackend.pm line 85
2013/01/09-15:20:08 [4997] Service 'mysql_innodb_rows' exited with status 13/0.
2013/01/09-15:20:08 [4997] Error output from mysql_qcache:
2013/01/09-15:20:08 [4997] 	Failed to create share at /usr/share/perl5/vendor_perl/Cache/SharedMemoryBackend.pm line 85
2013/01/09-15:20:08 [4997] Service 'mysql_qcache' exited with status 13/0.
2013/01/09-15:20:09 [4997] Error output from mysql_qcache:
2013/01/09-15:20:09 [4997] 	Failed to create share at /usr/share/perl5/vendor_perl/Cache/SharedMemoryBackend.pm line 85
2013/01/09-15:20:09 [4997] Service 'mysql_qcache' exited with status 13/0.

Version-Release number of selected component (if applicable):

selinux-policy-targeted-3.10.0-166.fc17.noarch
mysql-5.5.28-2.fc17.x86_64
perl-Cache-Cache-1.06-9.fc17.noarch
munin-node-2.0.9-3.fc17.noarch
selinux-policy-3.10.0-166.fc17.noarch

How reproducible:

yum install -y selinux-policy-targeted-3.10.0-166.fc17.noarch \
 mysql-5.5.28-2.fc17.x86_64 \
 perl-Cache-Cache-1.06-9.fc17.noarch \
 munin-node-2.0.9-3.fc17.noarch \
 selinux-policy-3.10.0-166.fc17.noarch \

cat > /etc/munin/plugin-conf.d/mysql <<EOF

[mysql_*]
env.mysqlconnection DBI:mysql:mysql
env.mysqluser root

EOF

munin-node-configure --suggest --shell | bash
setenforce 1
service munin-node restart

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Miroslav Grepl 2013-01-14 11:10:56 UTC
Do you have mysqld running as unconfined_t?

# ps -eZ |grep mysql

Comment 2 Fedora End Of Life 2013-07-04 00:55:46 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.