Bug 967614

Summary: /var/log/anaconda files have wrong selinux context after system installation
Product: Red Hat Enterprise Linux 7 Reporter: Michal Trunecka <mtruneck>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Michal Trunecka <mtruneck>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: ebenes, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:00:54 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 Michal Trunecka 2013-05-27 15:17:26 UTC
Description of problem:

seen on newly installed RHEL-7.0-20130522
could be an anaconda bug too

Part of output of restorecon run right after system installation:

restorecon reset /var/log/anaconda context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/anaconda.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/syslog context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/anaconda.program.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/anaconda.packaging.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/anaconda.storage.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/anaconda.ifcfg.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/ks-script-ExeEnl.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/ks-script-uIFSKR.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/anaconda/ks-script-xfaLhO.log context system_u:object_r:initrc_var_log_t:s0->system_u:object_r:var_log_t:s0

Version-Release number of selected component (if applicable):
selinux-policy-3.12.1-44.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. install the system, check file context

Comment 1 Miroslav Grepl 2013-05-28 13:53:47 UTC
Ok, I see the same problem.

Comment 2 Miroslav Grepl 2013-06-25 13:35:53 UTC
commit 121f2337c6d4a3f1bb0d2b0b0f4f67d35a9490ce
Author: Miroslav Grepl <mgrepl>
Date:   Tue Jun 25 15:35:11 2013 +0200

    Make sure anaconda log dir is created with var_log_t

Comment 4 Ludek Smid 2014-06-13 10:00:54 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.