You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Peter <pc...@sbcglobal.net> on 2008/12/17 06:15:04 UTC
apache SetEnv with selinux
Hello,
in apache httpd.conf file,
I set the LD_LIBRARY_PATH pointing to my run time lib,
SetEnv LD_LIBRARY_PATH /my/dir
if selinux is enforced, LD_LIBRARY_PATH settings won't work. I cannot find any error messages in apache, /var/log/messages and audit.log.
After disable selinux, it looks that the LD_LIBRARY_PATH settings in httpd.conf will work fine. Is there a way to get around this problem when turning on selinux?
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: apache SetEnv with selinux
Posted by Peter <pc...@sbcglobal.net>.
> Can you do this in your envvars file, sourced by apachectl,
> instead?
> Are these settings for your CGI's or for httpd itself?
> I didn't think
> the latter worked reliably anyway.
>
Eric,
thanks. I modified /etc/ld.conf to get it work.
Another question is that I use
audit2allow to create *.te file with the following requirement:
-----------------BEGIN
allow system_mail_t httpd_sys_content_t:file read;
allow httpd_sys_script_t self:process { execstack execmem };
--------------END
I can use semodule -i *.pp to get the security setting right.
But I want to know if it is possible that I can run from the command line
in another machine to get the security setting correct without *.pp file?
Thanks.
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: apache SetEnv with selinux
Posted by Eric Covener <co...@gmail.com>.
On Wed, Dec 17, 2008 at 12:15 AM, Peter <pc...@sbcglobal.net> wrote:
> in apache httpd.conf file,
> I set the LD_LIBRARY_PATH pointing to my run time lib,
> SetEnv LD_LIBRARY_PATH /my/dir
>
> if selinux is enforced, LD_LIBRARY_PATH settings won't work. I cannot find any error messages in apache, /var/log/messages and audit.log.
> After disable selinux, it looks that the LD_LIBRARY_PATH settings in httpd.conf will work fine. Is there a way to get around this problem when turning on selinux?
>
Can you do this in your envvars file, sourced by apachectl, instead?
Are these settings for your CGI's or for httpd itself? I didn't think
the latter worked reliably anyway.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org