Skip to contentSkip to conversation

Apache policy

DISCUSSION Russell Coker 2 participants 2 messages Mar 16, 2003 – Mar 17, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

I am continuing to work on my new Apache policy and it's getting fairly good.

I have got my new policy for cgi-bin scripts fairly well done apart from one fundamental issue that also applies to the current sourceforge policy for Apache. That is that user cgi-bin scripts are run in the system_r role which is bad form.

Having those scripts run in system_r means that the domains that they enter (such as for sending mail) also have to be allowed for system_r. Currently I have all the cgi-bin scripts run their mail as system_mail_t, I am unsure which is worse, allowing the user to run the mail in the same domain as the system mail, or allowing many more domains for system_r. This just gets even uglier whichever way you proceed.

Now I think that the only correct thing to do is to have a cgiwrap/suexec type program with SE Linux functionality to use the correct role and identity for the cgi-bin scripts (I believe that something similar has been done previously but not released).

When I get this done I think that we should make the standard policy only support cgi-bin scripts through a SE modified cgiwrap program, as anything else leads to deficiencies in the policy.

Signature · 10 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


--
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.
#1 lore raw
Quoted 4 lines · On Sun, 16 Mar 2003 23:42:50 +0100 Russell Coker <[email protected]> wrote:

Now I think that the only correct thing to do is to have a cgiwrap/suexec type program with SE Linux functionality to use the correct role and identity for the cgi-bin scripts (I believe that something similar has been done previously but not released).

I belive that the apache 2 suexec model could easily be ported to be "security aware" :) (the suexec model does not only apply to .cgi but also to .php and other kinds of server side scripts, making it all secure :)

Signature · 10 lines
Regards

Ask Holme aka kVanQue
Half-time student - Fulltime geek
PGP/GPG keyid 58CE6FE4 - fetch it today, from your local keyserver

--
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.