Bug 795756

Summary: sanlock/wdmd init scripts have bad path to restorecon
Product: Red Hat Enterprise Linux 6 Reporter: Miroslav Grepl <mgrepl>
Component: sanlockAssignee: David Teigland <teigland>
Status: CLOSED DUPLICATE QA Contact: Nobody <nobody>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2CC: cluster-maint, 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: 2012-02-21 16:36:23 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:

Description Miroslav Grepl 2012-02-21 13:18:58 UTC
Description of problem:

Your init scripts contain

[ -x /usr/sbin/restorecon ] && restorecon /var/run/$prog

but restorecon is placed in /sbin


How reproducible:

$ service sanlock start
$ service wdmd start

and you get AVC msgs because /var/run/sanlock and /var/run/wdmd are mislabeled.


So you need to make this change

-[ -x /usr/sbin/restorecon ] && restorecon /var/run/$prog
+[ -x /sbin/restorecon ] && restorecon /var/run/$prog

Comment 1 David Teigland 2012-02-21 16:36:23 UTC
Thanks, this will be fixed in the rebased sanlock package.

*** This bug has been marked as a duplicate of bug 782600 ***