Bug 1168968 - Wrong SELinux context for /usr/share/nginx/html
Summary: Wrong SELinux context for /usr/share/nginx/html
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nginx
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Felix Kaechele
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1261854 1261855 1261856 1261857
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-28 14:54 UTC by Sandro Mathys
Modified: 2020-05-18 14:12 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-04 12:14:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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