Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 139744 - write access to user's public_html directory
write access to user's public_html directory
Product: Fedora Documentation
Classification: Fedora
Component: selinux-apache (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chad Sellers
Tammy Fox
Depends On:
Blocks: 136427
  Show dependency treegraph
Reported: 2004-11-17 15:25 EST by Mark Drago
Modified: 2007-04-18 13:15 EDT (History)
1 user (show)

See Also:
Fixed In Version: 1.5.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-28 18:03:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mark Drago 2004-11-17 15:25:18 EST
Description of problem:
I have a php web application that uses sqlite.  The program lives in
my $HOME/public_html/ directory.  The sqlite database file is in this
directory.  So, I need to allow apache to write to the
$HOME/public_html directory in order have it update the database.  I
used the selinux-apache document to get as far as I did, but this
inability to write to the public_html directory caused me to set
selinux to 'warn' only.  This is probably something that would fit
well in this document.
Comment 1 Tammy Fox 2004-11-23 16:11:28 EST
I'm assigning this to Karsten since he is working with Colin on this
Comment 2 Colin Walters 2004-11-23 18:54:27 EST
PHP kind of throws a wrench into our original design; because it runs
in-process, it requires httpd_t to have direct write access to
httpd_sys_content_t, etc.


Comment 3 Karsten Wade 2005-12-27 19:56:33 EST
Does this need an FAQ entry for FC4 or FC5?

Reassigning, please evaluate for usage, or close as WONTFIX.

Comment 4 Chad Sellers 2006-04-20 14:08:58 EDT
With strict policy, this will require a policy change, as there is no type that
allows apache/php write access as well as user_t. For targeted, this can get
httpd_sys_script_rw_t, just like the other php script FAQ (possibly merged), and
the user in unconfined_t can still access it.
Comment 5 Chad Sellers 2006-04-20 16:09:56 EDT
Addressed in cvs

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