LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 10-01-2008, 08:24 AM   #1
BeauSanders
LQ Newbie
 
Registered: Nov 2004
Location: South Carolina
Distribution: CentOS 5.3; RHEL5.4
Posts: 23

Rep: Reputation: 15
SELinux is blocking Webalizer on RHEL5.2 Install


In a recent installation of RHEL5.2, SELinux is blocking Webalizer from writing stats to /var/www/html/sitename/stats. What is the best way to remedy this issue short of disabling SELinux? This is a default installation, very little customization at this point.

Thank you in advance for your assistance.

-Beau

Last edited by BeauSanders; 10-01-2008 at 02:17 PM.
 
Old 10-01-2008, 02:17 PM   #2
BeauSanders
LQ Newbie
 
Registered: Nov 2004
Location: South Carolina
Distribution: CentOS 5.3; RHEL5.4
Posts: 23

Original Poster
Rep: Reputation: 15
Fixed the problem

After a little reading and experimenting, I was able to fix the problem using audit2allow.

To understand this process as it applies to REHL5.2, read http://www.redhat.com/docs/manuals/e...y-package.html

First, I piped the SELinux alert message into audit2allow and used the switches as suggested by Red Hat:

echo "insert alert message here" | audit2allow -M newpolicy

In order to load this newly created local SELinux policy package (.pp) into the kernel, I ran this command:

semodule -i newpolicy.pp

Next I tested the Webalizer cron jobs and all worked as expected.

I also read an interesting, but dated, article on SysAdmin's Web site that inspired me:

http://www.samag.com/documents/s=982...508a/0508a.htm

-Beau
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer & GD library Install Wynand1 Linux - Software 2 12-23-2008 09:29 PM
Help, Selinux blocking append to named.log. mysteron Linux - Security 2 07-15-2008 07:01 AM
how to install C in RHEL5 abhik777 Red Hat 1 12-05-2007 01:45 AM
How to install webalizer? treotan Linux - Networking 4 07-13-2004 01:28 AM
Can't install webalizer wolftechmn Linux - Software 3 11-29-2003 08:16 AM


All times are GMT -5. The time now is 11:25 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
Open Source Consulting | Domain Registration