Bug 607292

Summary: directory ownership problem creates problems when corosync is installed individually with selinux
Product: Red Hat Enterprise Linux 6 Reporter: Steven Dake <sdake>
Component: corosyncAssignee: Steven Dake <sdake>
Status: CLOSED CURRENTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: ccaulfie, cluster-maint, fdinitto, lhh, rpeterso, teigland
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: corosync-1.2.3-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-15 13:53:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch which removes /var/log/cluster from being owned by cluster package
none
patch which makes corosync package own /var/log/cluster directory
none
patch to corosync to make corosync.spec.in own /var/log/cluster and change example config file accordingly
none
patch which makes corosync package own /var/log/cluster directory none

Description Steven Dake 2010-06-23 17:54:23 UTC
Description of problem:
the cluster package owns the directory /var/log/cluster.  In some cases, corosync is installed alone with no cluster package (qpid use case).  In this situation, it is not possible for corosync to log to a file.

I propose having corosync own /var/log/cluster directory.  cluster always depends on corosync, so the directory will always be present once cman installs.

Without this change it is not possible to have corosync log to a file with selinux enabled.

Version-Release number of selected component (if applicable):
cluster 3.0.12-6

How reproducible:


Steps to Reproduce:
1. run corosync (without cluster installed)
2. try to have it log to a file
3. permission denied
  
Actual results:
permission denied

Expected results:
should log to file

Additional info:

Comment 1 Steven Dake 2010-06-23 17:56:19 UTC
Created attachment 426333 [details]
patch which removes /var/log/cluster from being owned by cluster package

Comment 2 Steven Dake 2010-06-23 18:03:23 UTC
Created attachment 426338 [details]
patch which makes corosync package own /var/log/cluster directory

Comment 3 RHEL Program Management 2010-06-23 18:13:00 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Steven Dake 2010-06-23 18:16:36 UTC
Created attachment 426341 [details]
patch to corosync to make corosync.spec.in own /var/log/cluster and change example config file accordingly

Comment 6 Steven Dake 2010-06-23 18:40:41 UTC
Created attachment 426354 [details]
patch which makes corosync package own /var/log/cluster directory

Comment 11 releng-rhel@redhat.com 2010-11-15 13:53:51 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.