Bug 795756 - sanlock/wdmd init scripts have bad path to restorecon
Summary: sanlock/wdmd init scripts have bad path to restorecon
Keywords:
Status: CLOSED DUPLICATE of bug 782600
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sanlock
Version: 6.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: David Teigland
QA Contact: Nobody
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 13:18 UTC by Miroslav Grepl
Modified: 2012-02-21 16:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 16:36:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.