Bug 133955

Summary: Apache UserDir does not work if SELinux is set to Enforcing
Product: [Fedora] Fedora Reporter: Tero Ojala <terooj>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-06 22:49:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 123268    

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