Browse Source

Bug 752155 - Use restorecon after creating init script lock file

We need to call restorecon to ensure that the proper selinux context
is set on the init script lock file after the init script creates
it.
Nathan Kinder 14 years ago
parent
commit
d32deaacd7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wrappers/initscript.in

+ 1 - 0
wrappers/initscript.in

@@ -261,6 +261,7 @@ start() {
     done
     if [ $successes -ge 1 ]; then
         touch $lockfile
+        [ -x /sbin/restorecon ] && /sbin/restorecon $lockfile
     fi
     if [ $errors -ge 1 ]; then
         echo "  *** Warning: $errors instance(s) failed to start"