LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-04-2007, 12:42 AM   #1
badengineer
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
SElinux causing Apache/httpd problem on Fedora 6


I have web server running on Fedora core 6. I didn't use the default httpd; compiled apache2 myself. The web server is fine from localhost. But if I try to access it from other machine or internet, it's always Connection Time out.

I have SELinux setting at the default "enforcing". If I set it to permissive, all web access are fine. However, i'd like to keep the server as safe as possible, so i want to find out if it's possible to modify the selinux setting to allow apache to work, but still enforcing other security policy.

I do see all the inbound web access in the messages file -
xxxx kernel: Inbound IN=eth0 OUT= MAC=xx SRC=xxx DST=xxx LEN=44 TOS=0x00 P
REC=0x00 TTL=51 ID=3160 DF PROTO=TCP SPT=24591 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0

I also tried "disable selinux protection over httpd". It didn't make any difference. Not sure if it's because i'm not using the default httpd.

Thanks.
 
Old 06-04-2007, 10:47 AM   #2
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
It is because you're not using the default httpd.

If you need to use your custom httpd, install setroubleshoot, start setroubleshootd, and then after an SELinux denial, either run the SELinux Troubleshooter from the menu, if you have gnome installed you can click the start that shows up in the system tray, or else run
Code:
sealert -b
that will tell you why SELinux is stopping, what it is stopping, and hopefully how to work around it.

If you don't have any GUI installed, the following command will generate an HTML file you can view with any standard browser like lynx:
Code:
sealert -H -a /var/log/audit/audit.log > selinux.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
app causing selinux audit message dansawyer Linux - Security 1 01-21-2007 11:44 AM
selinux with vsftpd and httpd swpr Linux - Security 4 06-28-2006 05:49 AM
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 07:40 AM
PHP5 & HTTPD (apache) on Fedora Core 4 fatum112 Linux - Software 4 12-02-2005 05:44 PM
Fedora 1, Apache, httpd.conf file Turner Linux - Newbie 2 07-07-2004 12:11 PM


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

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