Bug 133955 - Apache UserDir does not work if SELinux is set to Enforcing
Summary: Apache UserDir does not work if SELinux is set to Enforcing
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC3Target
TreeView+ depends on / blocked
 
Reported: 2004-09-28 17:15 UTC by Tero Ojala
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-06 22:49:27 UTC


Attachments (Terms of Use)

Description Tero Ojala 2004-09-28 17:15:23 UTC
Description of problem:

Apache's UserDir does not work if SELinux set to Enforcing.


How reproducible:

Configure Apache UserDir. Switch SELinux Enforcing/Permissive. Works
when SELinux is set to Permissive. Does not work with Enforcing.
 

Actual results:

Apache does not serve from www.mysite.com/~user and "(13)permission
denied. access to /~user denied." appears in /var/log/httpd/error_log


Expected results:

Apache serves from ~user/public_html


Additional info:

Comment 1 Daniel Walsh 2004-09-30 18:49:10 UTC
Try
chcon -R -t httpd_user_content_t ~USERNAME/public_html


Comment 2 Ben Levenson 2004-10-06 22:49:27 UTC
This works for me.
* Verify settings in httpd.conf
* Verify file contexts (comment #1)
* Verify directory perms for ~user and ~user/public_html

-> NOTABUG


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