init.sh: apply SELinux label for /run early in boot

Some initramfs mount /run which then ends up with the wrong labels.
Force relabel all of /run right after its mounted to fix.
This commit is contained in:
Jason Zaman authored and William Hubbs committed 2018-02-28 12:42:58 -06:00
1 parent 1ab8541a6c
commit 5bb6f9aa31
1 file changed
+1
+1
View File
@@ -83,6 +83,7 @@ elif ! mountinfo -q /run; then
fi
fi
[ -x /sbin/restorecon ] && /sbin/restorecon -rF /run
checkpath -d $RC_SVCDIR
checkpath -d -m 0775 -o root:uucp /run/lock