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: targeted policy and apache(?): msg#00154

Subject: Re: targeted policy and apache(?)
On Thu, 2005-04-21 at 10:02 -0700, Ben wrote:
> I'm seeing avc errors, and it's pretty unclear to me what's causing them. 
> What's being complained about, here? 
> 
> 1 Time(s): audit(1113980474.264:0): avc:  denied  { search } for  pid=7148 
> exe=/bin/bash name=log dev=md0 ino=3260417
> scontext=root:system_r:httpd_sys_script_t 
> tcontext=system_u:object_r:var_log_t tclass=dir
> 
> 
> I would guess that some script is trying to list a log directory on
> /dev/md0, but that's about all I can guess from this and it doesn't help
> me track it down to a useful level anyway.

Not list, just perform a lookup, e.g a CGI script is attempting to
access something under /var/log (requiring search access to the log
directory), and this is denied in the policy.  Note that you can
sometimes get more information by enabling system call auditing, e.g.
use auditctl -e 1 or boot your kernel with audit=1; the audit framework
will then output a separate syscall audit record upon syscall exit after
any such avc messages with the relevant syscall and arguments.

Likely your script wants to append to log files under /var/log/httpd.
Looks like the current policy allows httpd itself to do this, but not
CGI scripts.

-- 
Stephen Smalley <sds@xxxxxxxxxxxxx>
National Security Agency



<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