LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 04-06-2011, 10:24 AM   #1
reynold
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Apache and SELinux help


Hello everyone, i am pretty new to SELinux and im currently working on something was just wondering if anyone could give me a few pointers or tips.

So i am trying to confine the apache HTTP server with SELinux on my Centos5.5 system. As i am new to SELinux im not to sure how to go about in doing this.

I have configured apache to have a static web page in /var/www/html and also dynamic cgi scripts under /var/www/scripts.

if anyone can help that would be awesome. Thanks in advance!!
 
Old 04-06-2011, 01:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,984
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
Quote:
Originally Posted by reynold View Post
i am trying to confine the apache HTTP server with SELinux on my Centos5.5 system.
Centos-5.5 comes with a policy for Apache and you can confirm booleans and context are in place by running 'ls -Z /var/www/ /usr/sbin/httpd*; getsebool -a|grep httpd'. Also see 'man httpd_selinux'.
 
Old 04-07-2011, 09:03 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
As unSpawn said, SELinux is defaulted to on in RHEL/Centos 5.x, so just check out those cmds.
for more detail, here's the Admin handbook http://www.linuxtopia.org/online_boo...ion/index.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about selinux and apache unix1adm Linux - Software 5 09-07-2010 06:57 PM
LXer: SELinux with Apache LXer Syndicated Linux News 0 04-19-2008 10:41 AM
SELINUX or ls -Z..no control of Apache mikeghet Suse/Novell 0 10-28-2005 12:57 AM
SELinux + Apache + MySQL + PHP SADANA Fedora 6 03-28-2005 10:06 PM
Apache and selinux azrael808 Linux - Software 1 02-10-2005 12:41 PM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration