Strange behavior of httpd
After running for more than a week on a fixed policy, httpd suddenly wants more privileges and refuses to serve web pages without them:
It, and cgi scripts it runs, are trying to access files in /var/cache and /var/run
/var/cache/ssl_gcache_data.sem
and
/var/run/httpd.mm.995.sem
I made up a new file type for the /var/run file, 'httpd_var_run_sem_t' and could do that for the ssl_gcache_data.sem file but wonder why this apparent change of behavior after so long.
I apologize if this is off-topic.
--
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Justin,
I worked on the example Apache policy for Selinux.
The files you reference seem to be semaphore files. Apache is using these files to globally synchronize two or more of it's processes. The behavior you describe seems legitimate, therefor it is ok to create these types and give Apache permisison to them. The same will be done for the example Apache policy in Selinux.
I am not sure what changed in the Apache environment, where the policy is running, to make Apache want to globally synchronzie it's proceses.
Jen
Quoted 16 lines
After running for more than a week on a fixed policy, httpd suddenly wants more privileges and refuses to serve web pages without them:
It, and cgi scripts it runs, are trying to access files in
/var/cacheand/var/run
/var/cache/ssl_gcache_data.semand
/var/run/httpd.mm.995.semI made up a new file type for the
/var/runfile, 'httpd_var_run_sem_t' and could do that for the ssl_gcache_data.sem file but wonder why this apparent change of behavior after so long.
Quoted 8 lines
I apologize if this is off-topic.
--
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 10 lines · Jen Schommer
Justin,
I worked on the example Apache policy for Selinux.
The files you reference seem to be semaphore files. Apache is using these files to globally synchronize two or more of it's processes. The behavior you describe seems legitimate, therefor it is ok to create these types and give Apache permisison to them. The same will be done for the example Apache policy in Selinux.
Quoted 4 lines
I am not sure what changed in the Apache environment, where the policy is running, to make Apache want to globally synchronzie it's proceses.
Jen
Thank you very much!
I'm running a very active server with Apache interfacing a Tomcat servlet/jsp engine and it becomes particularly active during exam time (when more than 100 students submit their online exams in a short time).
It doesn't astound me that apache wants to synchronize its resources. I didn't know that it used a file like this to do it. Perhaps the resource in question is the mod_jk.so file...
Thanks again. This list is fantastic!
Signature · 16 lines
______________________________________________________________________
Time blows wildly against my door | Justin R. Smith
Stirring discarded sorrows | Department of Mathematics and
Like dead leaves of summers past | Computer Science
Memories of forgotten lore | Drexel University
Making way for new tomorrows | Philadelphia, PA 19104
New hopes, new fears, |
and new ways that last | Office: (215) 895-1847
URL: http://vorpal.mcs.drexel.edu | Fax: (215) 895-1582
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.