Apache can't run PERL CGI script with enforcing enabled

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

Apache can't run PERL CGI script with enforcing enabled

Postby jsanpore on Mon Jan 24, 2011 4:37 pm

I'm totally stuck. I've been trying to bring up a simple website that uses PERL CGI scripts.
I can get it to work with SELinux enforcing disabled, but with enforcing enabled I get permission denied messages in the web logs.
I was looking for the avc messages to appear somewhere but I can't find them.

Here's what I've tried so far...

1. Check all standard linux permissions, etc. I believe this is all OK or I wouldn't expect it to work normally with enforcing disabled.
2. Changed the context of the 'cgi' directory and of my perl script to be: httpd_sys_script_exec_t

With the new context and enforcing enabled, I get the following message in the Audit Monitor window....

allow httpd_t httpd_sys_script_exec_t:dir { getattr search }

I think this would require a policy change but not sure how or what to do next.

Surely I can't be the first person to run across this problem of trying to run a perl cgi script with enforcing on?
What am I doing wrong?

Thanks,
Jeff
jsanpore
 
Posts: 1
Joined: Mon Jan 24, 2011 3:59 pm

Re: Apache can't run PERL CGI script with enforcing enabled

Postby fiona77 on Mon Aug 22, 2011 6:09 am

Join your post as I have the same difficulty... :(
http://phone-card-cards.com/
fiona77
 
Posts: 1
Joined: Mon Aug 22, 2011 6:08 am


Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests

cron