Bug 1168968

Summary: Wrong SELinux context for /usr/share/nginx/html
Product: [Fedora] Fedora EPEL Reporter: Sandro Mathys <sandro>
Component: nginxAssignee: Felix Kaechele <felix>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: affix, athmanem, bperkins, jeremy, jkaluza, pavel.lisy, tadej.j, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-04 12:14:07 UTC Type: Bug
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: 1261854, 1261855, 1261856, 1261857    
Bug Blocks:    

Description Sandro Mathys 2014-11-28 14:54:47 UTC
Description of problem:
/usr/share/nginx/html(/.*)? should have SELinux context httpd_sys_content_t by default.

Version-Release number of selected component (if applicable):
nginx-1.6.2-4.el7.x86_64

How reproducible:
unknown

Steps to Reproduce:
1. Install CentOS 7 and enable EPEL 7
2. yum -y install nginx
3. ls -aZ /usr/share/nginx/html/

Actual results:
Wrong context (I think it was usr_t, but lost my scrollback, sorry).

Expected results:
httpd_sys_content_t

Additional info:
Tried on CentOS as provided by DigitalOcean which has SELinux disabled by default. Enabled it and rebooted, restorecon'd the directory but to no avail.

Comment 1 Jamie Nguyen 2015-09-10 10:30:22 UTC
It didn't quite take a whole year to reply, but almost. Sorry!

I've opened bugs for selinux-policy on rawhide, F23, F22 and epel7.

Comment 2 Tadej Janež 2017-05-09 08:47:47 UTC
I think this one can be closed since the dependent bugs have been fixed.