Bug 1268901

Summary: wrong selinux context on /etc/rsyslog.conf after running spindown-disk
Product: Red Hat Enterprise Linux 7 Reporter: Tereza Cerna <tcerna>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: jeder, jskarvad, paullee0
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.7.0-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1305270 (view as bug list) Environment:
Last Closed: 2016-11-04 07:25:59 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:    
Bug Blocks: 1305270    

Description Tereza Cerna 2015-10-05 15:07:14 UTC
Wrong selinux context on /etc/rsyslog.conf after running spindown-disk. Currently there is tuned_var_run_t and should be syslog_conf_t.

# rpm -q tuned
tuned-2.5.1-4.el7.noarch

Comment 2 Jaroslav Škarvada 2015-10-06 09:42:19 UTC
It's because it uses 'cp' and doesn't fix the context.

Comment 4 paul 2016-02-06 03:15:54 UTC
Similar in 6.x ?  No fix for 6.x?

(Bug 1201966)
https://bugzilla.redhat.com/show_bug.cgi?id=1201966

Comment 5 Jaroslav Škarvada 2016-02-06 14:38:47 UTC
(In reply to paul from comment #4)
> Similar in 6.x ?  No fix for 6.x?
> 
> (Bug 1201966)
> https://bugzilla.redhat.com/show_bug.cgi?id=1201966

Right, thanks for pointing it out, I am cloning the bug to RHEL-6 to keep the context. Regarding the bug 1201966, if the issue is fixed for you by the commit from the comment 3, feel free to close it as a dupe.

Comment 6 paul 2016-02-07 00:03:04 UTC
Thanks!  I have a system probably 6.1 which later I found suffering same context problem, but originally in Bug 1201966 reported another seems related problem:

"The /etc/rsyslog.conf is restored to a default template upon system reboot.  Any changes to that file is lost after that reboot...."

Hope this help.

Comment 10 errata-xmlrpc 2016-11-04 07:25:59 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://rhn.redhat.com/errata/RHBA-2016-2479.html