Hi

I have found the solution for this. If somebody is interested it is the
following:

 1.  audit2allow -d --> will read the avc denied messages and create a
policy rule out of it
    It will return something like this:
            allow httpd_sys_script_t httpd_tmp_t:file { getattr ioctl
read };
            allow httpd_t tmp_t:file getattr;

  2. Edit this file:
/etc/selinux/targeted/src/policy/domains/misc/local.te and add those
rule to it

  3. Do: cd /etc/selinux/targeted/src/policy; make reload

Zsolt


Noah Kantrowitz wrote:
> Zsolt wrote:
> > Hi
> >
> > I have the following error and I cannot figure out why. Maybe somebody
> > can tell me what to do? :)
> >
> > The problem is the following:
> > I have installed Trac-SVN-apache2 on RHEL4 and it is working fine
> > except syntax highlighting. I have set the php_path to the path of the
> > php. I have even installed SilverCity. The apache can write in the /tmp
> > directory.
> >
> >
> > I ge the following error in the browser:
> >   "HTML preview not available. To view, download the file."
> >
> > I have checked the apache error log it says the following even if I set
> > the log level to debug:
> >   "sh: /tmp/tmpTX-DMy: Permission denied"
>
> Is SELinux active? If so check for AVC denial messages and alter your
> policy accordingly.
> 
> --Noah


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Trac Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to