I just did a new install of Fedora Core 3 and everything is working fine except Perl. First off perl in the cgi-bin will not work but the scripts work fine in the command prompt. When running perl in the cgi-bin I get in the error log:
[Wed May 04 19:21:42 2005] [error] [client 192.168.0.1] (13)Permission denied: exec of '/var/www/cgi-bin/tester.cgi'$
[Wed May 04 19:21:42 2005] [error] [client 192.168.0.1] Premature end of script headers: tester.cgi
All of my perl scripts get this error. When I change "#!/usr/bin/perl" to "#!/usr/bin/perl -w" the scripts work. I know it's not a chmod problem. When I do the -w option via cgi-bin I get this at the command prompt:
audit(1115260275.255:0) avc: denied { search } for pid=2940 exe=/usr/bin/perl scontext=user_u:system_r:httpd_sys_script_t tcontext=system_u:object_r:sysctl_kernel_t tclass=dir

audit(1115260275.255:0) avc: denied { search } for pid=2940 exe=/usr/bin/perl name=sys dev=proc ino=268435431 scontext=user_u:system_r:httpd_sys_script_t tcontext=system_u:object_r:sysctl_t tclass=dir

audit(1115260275.255:0) avc: denied { read } for pid=2940 exe=/usr/bin/perl name=tmp dev=dm-0 ino14073990 scontext=user_u:system_r:httpd_sys_script_t tcontext=system_u:object_r:tmp_t tclass=lnk_file
Anyone know whats going on?