SELinux is preventing /usr/bin/bash from using the sys_resource capability

Posted on

The Server is hanging where i could not issue the command df -h as if it is consuming all the resources and when i check in /var/log/messages i see the following error/warning message:
SELinux is preventing /usr/bin/bash from using the sys_resource capability. #012#012***** Plugin sys_resource (91.4 confidence) suggests **********************#012#012If you do not want processes to require capabilities to use up all the system resources on your system;#012Then you need to diagnose why your system is running out of system resources and fix the problem.#012#012According to /usr/include/linux/capability.h, sys_resource is required to:#012#012/* Override resource limits. Set resource limits. /#012/ Override quota limits. /#012/ Override reserved space on ext2 filesystem /#012/ Modify data journaling mode on ext3 filesystem (uses journaling#012 resources) /#012/ NOTE: ext2 honors fsuid when checking for resource overrides, so#012 you can override using fsuid too /#012/ Override size restrictions on IPC message queues /#012/ Allow more than 64hz interrupts from the real-time clock /#012/ Override max number of consoles on console allocation /#012/ Override max number of keymaps */#012#012Do#012fix the cause of the SYS_RESOURCE on your system.