Bug 557604

Summary: SELinux is preventing /usr/bin/snmpget "getattr" access on /usr/share/snmp/mibs/.index
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.6.32-78.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-02 01:24:00 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 Anthony Messina 2010-01-21 22:44:07 UTC
~]# ls -lZ /usr/share/snmp/mibs/.index
-rw-r--r--. root root system_u:object_r:snmpd_var_lib_t:s0 /usr/share/snmp/mibs/.index

This is my site-specific module which fixes the problem.

module fixnagiossnmpget 1.0;

require {
        type snmpd_var_lib_t;
        type nagios_services_plugin_t;
        class file { read getattr open };
}

#============= nagios_services_plugin_t ==============
allow nagios_services_plugin_t snmpd_var_lib_t:file { read getattr open };

Comment 1 Miroslav Grepl 2010-01-22 15:04:44 UTC
Fixed in selinux-policy-3.6.32-76.fc12.noarch

Comment 2 Fedora Update System 2010-01-28 09:24:31 UTC
selinux-policy-3.6.32-78.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-78.fc12

Comment 3 Fedora Update System 2010-01-29 03:29:44 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1207

Comment 4 Fedora Update System 2010-02-02 01:21:49 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.