Bug 539707
| Summary: | SELinux is preventing /usr/lib64/nagios/plugins/check_disk "getattr" access on /dev/sdb1. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Hanby <flakrat> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:cfccaacf9e094c28f6872281dd83b8a15a8fe74711bfb98b5e8e1a25c8b3bc96 | ||
| Fixed In Version: | 3.6.32-49.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-12-01 16:40:48 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
Mike Hanby
2009-11-20 21:00:03 UTC
This is using the Nagios plugin from the official Fedora 12 repo: nagios-plugins-disk-1.4.13-17.fc12.x86_64 The plugin works with SELinux in permissive mode, as you might expect. Some additional rpm versions that might be helpful: nrpe-2.12-11.fc12.x86_64 selinux-policy-targeted-3.6.32-41.fc12.noarch selinux-policy-3.6.32-41.fc12.noarch You can add these rules for now using # grep avc /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp You can add this for now. Miroslav can you write up a policy for the check_disk plugins for nagios to allow them to read fixed disk. I really do not want to give this access to all plugins. Thanks, yeah I think adding that to all plugins would be overkill. As an example, I'm also using check_procs plugin on this workstation and it works fine within the selinux policy. Dan, I have sent you a patch. Fixed in selinux-policy-3.6.32-48.fc12.noarch Thanks, I'll post back once I install the updated package. I haven't run the manual audit2allow or semodule commands on the affected system, so it should be a good test. selinux-policy-3.6.32-49.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-49.fc12 selinux-policy-3.6.32-49.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-2009-12131 selinux-policy-3.6.32-49.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. Sorry, I forgot to update this ticket, selinux-policy-3.6.32-49.fc12 resolved the problem on my system. |