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: Why does this get denied?: msg#00187

Subject: Re: Why does this get denied?
On Mon, 2004-12-20 at 16:32 +0000, Andy Smith wrote:

> Now, the only thing I have changed is, instead of having my document
> root be /var/www/html I've put it in /data/www.  I edited
> /etc/selinux/targeted/src/policy/file_contexts/program/apache.fc to
> reflect the fact that my content is in a different place and did do
> a restorecon to relabel things under /data.

Did you do a 'make -C /etc/selinux/targeted/src/policy reload' ?  Note
that restorecon works on /etc/selinux/targeted/contexts/file_contexts
which is generated from the .fc files.

Personally whenever I'm doing policy customizations like this, I
generally don't touch the .fc files.  I just use chcon to relabel things
on the filesystem only.

> What I don't understand is the reference to /.  Why is selinux
> denying httpd searching /? 

Note that the path reference is relative; it looks to me like it's
trying to read / from dm-1, which presumably is your /data partition,
which has the default label of file_t.

Try this:

chcon -R -h -t httpd_sys_content_t /data




<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