Bug 232476 - allow httpd write access to /var/cache/mod_proxy/*
allow httpd write access to /var/cache/mod_proxy/*
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2007-03-15 14:14 EDT by Joe Orton
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2007-0741
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-15 11:07:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
content from audit.log (4.51 KB, text/plain)
2007-10-08 20:11 EDT, Josef Kubin
no flags Details

  None (edit)
Description Joe Orton 2007-03-15 14:14:47 EDT
Description of problem:
The httpd process should be allowed write/search/read/etc/create- access within
/var/cache/mod_proxy/ - this directory can be configured for disk caching.

httpd will create subdirectories, delete subdirectories, create, read, write
files within there.
Comment 1 Daniel Walsh 2007-06-21 09:06:48 EDT
Fixed in selinux-policy-targeted-1.17.30-2.146
Comment 2 RHEL Product and Program Management 2007-06-26 11:25:47 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 5 Josef Kubin 2007-10-08 20:11:29 EDT
Created attachment 220351 [details]
content from audit.log

It needs additional configuration in policy ...

# rpm -q selinux-policy-targeted
Comment 6 Daniel Walsh 2007-10-15 09:51:22 EDT
The directory is still mislabeled.  restorecon -R -v /var/cache/mod_proxy should
Comment 7 Josef Kubin 2007-10-16 17:21:13 EDT
Yes, it fixes the problem. But it isn't good solution - the scriptlet in rpm
package should reliably autorelabel filesystem to avoid a such situation ...
Comment 8 Josef Kubin 2007-10-16 17:49:19 EDT
BTW rpm postinstall scriptlet contains bug:

... && fixfiles -l /dev/null -C /etc/s....

fixfiles for RHEL4 doesn't have switches -l and -C

The bug apparently appears in case of missing or empty
Comment 10 Josef Kubin 2007-10-16 18:16:23 EDT
OOPS! `man fixfiles` should be updated for RHEL4.
see https://bugzilla.redhat.com/show_bug.cgi?id=335441
Comment 11 Daniel Walsh 2007-10-17 00:20:21 EDT
So do we have a bug or not?
Comment 13 errata-xmlrpc 2007-11-15 11:07:02 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.