Bug 557604 - SELinux is preventing /usr/bin/snmpget "getattr" access on /usr/share/snmp/mibs/.index
Summary: SELinux is preventing /usr/bin/snmpget "getattr" access on /usr/share/snmp/mi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-21 22:44 UTC by Anthony Messina
Modified: 2010-02-02 01:24 UTC (History)
1 user (show)

Fixed In Version: 3.6.32-78.fc12
Clone Of:
Environment:
Last Closed: 2010-02-02 01:24:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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