Skip to contentSkip to conversation

apache

PATCH Russell Coker 2 participants 2 messages Sep 27, 2002 – Oct 1, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

I've attached a patch for the apache policy.

If someone here knows the Apache source then the best solution would be to get the Apache source patched to set the file handle in question to close on exec...

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
domains/program/apache.te renamed from tmp/policy/domains/program/apache.te +4 -0
diff -ru /tmp/policy/domains/program/apache.te ./domains/program/apache.te
@@ -158,6 +158,10 @@
 allow httpd_suexec_process_t httpd_var_run_t:file rw_file_perms;
 allow httpd_suexec_process_t httpd_cache_t:file rw_file_perms;
 
+# apache should set close-on-exec
+dontaudit httpd_suexec_process_t httpd_t:unix_stream_socket { read write };
+dontaudit { system_mail_t mta_user_agent } httpd_t:unix_stream_socket { read write };
+
 #
 # If a user starts a script by hand it gets the proper context
 #
#1 lore raw
Quoted 5 lines · Russell Coker

I've attached a patch for the apache policy.

If someone here knows the Apache source then the best solution would be to get the Apache source patched to set the file handle in question to close on exec...

Thanks, merged.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.