Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1222494

Summary: call restorecon on /etc/rc.d/init.d/htcacheclean after install
Product: Red Hat Software Collections Reporter: Ondřej Pták <optak>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Ondřej Pták <optak>
Severity: low Docs Contact:
Priority: unspecified    
Version: httpd24   
Target Milestone: alpha   
Target Release: 2.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: httpd24-httpd-2.4.18-2.el6 httpd24-httpd-2.4.18-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-31 10:16:40 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:

Description Ondřej Pták 2015-05-18 11:07:33 UTC
Description of problem:
There is typo in postinstall scriptlet of httpd24-httpd, which cause that selinux-content of file /etc/rc.d/init.d/htcacheclean is not restored.

Version-Release number of selected component (if applicable):
httpd24-httpd-2.4.12-3.el6.x86_64
httpd24-httpd-2.4.12-6.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.ls -Z /etc/rc.d/init.d/httpd24-htcacheclean


Actual results:
-rwxr-xr-x. root root system_u:object_r:initrc_exec_t:s0 /etc/rc.d/init.d/httpd24-htcacheclean

Expected results:
-rwxr-xr-x. root root system_u:object_r:httpd_initrc_exec_t:s0 /etc/rc.d/init.d/httpd24-htcacheclean

Additional info:
This has probably very little impact, because when httpd24-htcacheclean service is started, it runs with correct selinux context, which is httpd_t.
On rhel-6 there have to be selinux-policy-3.7.19-261.el6 or newer.

Comment 5 errata-xmlrpc 2016-05-31 10:16:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1154