LinuxQuestions.org
Review your favorite Linux distribution.
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: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,237

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
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
[SOLVED] 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 / openSUSE 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration