Selinux prevents apache to run script that call bash script inside. How to fix?

view full story

http://serverfault.com – I have linux with SELinux and got problems I have apache that has VHOST that runs API.PHP script that internally implement shell calls to bash scripts like this: private function getRepoList(){ exec("/home/www/sites/hgcrm.saritasa.com/mercurial/get-repo-list.sh",$retval); } when I turn off SELinux - everything is working fine, but when I turn it on then a. It stops working, it seems no access to bash scripts anymore b. /var/messages has these lines: Feb 26 03:58:19 LinuxMercurialRepo setroubleshoot: SELinux is preventing /usr/bin/sudo from using the sys_resource capability. For c (HowTos)