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: Horde Application Suite and SELinux...: msg#00156

Subject: Re: Horde Application Suite and SELinux...
On Tue, 22 Feb 2005 17:12:20 -0500, Colin Walters <walters@xxxxxxxxxx> wrote:
> On Tue, 2005-02-22 at 14:14 -0700, Tom Lisjac wrote:

Thanks for the reply.

> >...so aspell runs but doesn't return any results. If I
> >disable SELinux, it works fine... but since this server will be
> >running in a hostile environment, I'd rather not.  I could also add:
> >
> >allow httpd_sys_script_t httpd_tmp_t:file { getattr read };
> 
> Hmmm.  httpd_tmp_t is the type of temporary files generated by the main
> webserver, not by CGI scripts.  Perhaps what's happening is you have
> some PHP code which is using aspell and creating a temporary file in the
> main httpd process, and then a CGI script wants to read that later?

I was under the impression that mod_php and the webserver ran in the
same context... so I'm not sure I understand the distinction SELinux
would make between the server and the script.

Here's the avc that is generated. Apparently the write did occur and
this was an attempt by the script to read the spellchecked file back.

avc:  denied  { getattr } for  pid=32122 exe=/usr/bin/aspell
path=/tmp/spellkQimNQ dev=hda2 ino=326408
scontext=root:system_r:httpd_sys_script_t
tcontext=root:object_r:httpd_tmp_t tclass=file

I'm curious why the targeted policy allows the write but blocks reads from /tmp?

In any case, it appears that I should make the exception and allow the
read. I made a huge mess when I started hacking the policy sources in
FC2... is there a document or howto somewhere that describes the
correct way to add a exception that will survive an rpm policy update?

Thanks,

-Tom



<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