Hello,
Background
I have recently upgraded from FC12 to FC13, and last week I updated all packages using YUM. The system is running as a VM inside CentOS 5.5 using KVM. SELinux is enforcing, using the targeted policy. Bugzilla is version 3.6.1 and was NOT installed using RPM or YUM.
My Problem
Bugzilla was working OK on this machine until SELinux was upgraded last week from 3.7.19-28 to 3.7.19-33, and is still broken after testing 3.7.19-37 from the testing repo. With SELinux in enforcing mode, apache returns error 500 when I browse to the main bugzilla page. The apache error log shows this:-
Code:
[Mon Jul 19 13:15:08 2010] [error] [client 192.168.40.1] (13)Permission denied: exec of '/var/www/html/bugzilla/index.cgi' failed
Nothing, and I mean absolutely nothing, is recorded in /var/log/audit/audit.log, /var/log/messages or /var/log/secure.
If I set SELinux to Permissive, the problem goes away. My SELinux booleans for HTTP are:-
Code:
[root@xxx log]# getsebool -a | grep http
allow_httpd_anon_write --> off
allow_httpd_mod_auth_ntlm_winbind --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_network_connect --> on
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> on
httpd_can_network_relay --> off
httpd_can_sendmail --> on
httpd_dbus_avahi --> on
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> on
httpd_execmem --> off
httpd_read_user_content --> off
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_tmp_exec --> off
httpd_tty_comm --> off
httpd_unified --> off
httpd_use_cifs --> off
httpd_use_gpg --> off
httpd_use_nfs --> off
[root@xxx log]#
I have ensured all ownership and contexts are correct, by using these commands:-
Code:
[root@xxx bugzilla]# chown -R apache:apache *
[root@xxx bugzilla]# chcon -R --reference=/var/www/html *
Execute permissions are OK, because the site works when SELinux is Permissive.
Questions- If SELinux is blocking index.cgi or some part of it, why isn't anything written to /var/log/audit/audit.log?
- Can you suggest changing any of my boolean values to solve this?
I have other web-apps using MySQL and they are running correctly in enforcing mode, so it isn't a database issue.
Thanks for reading, and I look forward to receiving your assistance 
Ian