Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: SELinux and Big Brother: msg#00104

Subject: Re: SELinux and Big Brother
On Mon, 14 Nov 2005, Stephen Walton wrote:

> I just got Big Brother working on Fedora Core 4 with SELinux enabled.  
> The key steps:
> 
> 1.  With SELinux turned on, apache adamantly refuses to follow symbolic 
> links, even if FollowSymLinks is set in httpd.conf. (Is this a bug?) The 
> only workaround I've been able to find is a bind mount:

Don't know but...

> 
> # mkdir /var/www/html/bb
> # mount -o bind /home/bb/bb/www /var/www/html/bb

Why don't you simply put something like the following in 
/etc/httpd/conf.d/bb.conf:

#
# Big Brother is a web based network monitoring program
#

Alias /bb /home/bb/bb/www

<Directory /home/bb/bb/www/>
   order deny,allow
   deny from all
   allow from 127.0.0.1
   allow from 192.168.0
</Directory>

Season to taste of course.

That way you do not have to mess with symlinks.

> 2.  Change the context:
> 
> # chcon -R -h -t httpd_user_content_t /home/bb/bb/www
> 
> 3. Change the two 'mv' commands in bb-display.sh to 'cp' commands so 
> that the contexts get preserved when the page is regenerated.

That sounds like the piece I was missing.

Thanks.

> 
> Of course in the above I'm assuming DocumentRoot in apache is set to 
> /var/www/html and that your Big Brother server files are in 
> /home/bb/bb.  Change as appropriate for your setup.

That is a standard bb setup, so it should work for most.

Regards,

Tom Diehl               tdiehl@xxxxxxxxxxxx             Spamtrap address 
mtd123@xxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe