Bug 1255948
Summary: | SELinux is preventing nagios check_disk plugin getattr on /sys/kernel/config | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joonas Sarajärvi <muep> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | alvin, cherdt, dominick.grift, dwalsh, karlcz, lvrabec, mgrepl, plautrba |
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: | 2016-12-20 14:27:12 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
Joonas Sarajärvi
2015-08-22 08:06:23 UTC
Some extra notes: With the document at [1], I learned about a workaround that allows one to use the check_disk plugin without entirely crippling SELinux: semanage fcontext -a -t nagios_unconfined_plugin_exec_t /usr/lib64/nagios/plugins/check_disk restorecon -v /usr/lib64/nagios/plugins/check_disk It is quite surprising that SELinux even in RHEL and CentOS seem to confine nagios plugins, despite those distros not shipping them. At least in CentOS 7, I have to enable e.g. the EPEL repository in order to get nagios. References: [1] http://edvoncken.net/2012/01/workaround-for-nagios-check_disk-failure-in-rhel-centos-6-2/ Another workaround is to exclude the offending filesystems in your check_disk probe definition. Include flags like these to get rid of the absurd flood of psuedo filesystems: -X configfs -X cgroup -X tmpfs -X selinuxfs -X sysfs -X proc -X mqueue -X binfmt_misc -X devtmpfs With the exception perhaps of tmpfs, I don't think there is much actionable information in reporting any of those anyway. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. 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 EOL if it remains open with a Fedora 'version' of '23'. 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. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 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 this bug is closed as described in the policy above. 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. Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. In case anyone runs across this closed bug report, this is not actually a bug. There is no reason for the Nagios check_disk plugin to be checking the configfs virtual filesystem, so SELinux blocks it. The comment by Need Real Name is correct: the solution is to correct the check_disk definition to include only the filesystems you want to check, or exclude the filesystems you don't want to check. There is no reason to change the SELinux context. |