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 2018-02-28 12:41:54 -06:00 committed by William Hubbs
parent 1ab8541a6c
commit 5bb6f9aa31

View File

@ -83,6 +83,7 @@ elif ! mountinfo -q /run; then
fi fi
fi fi
[ -x /sbin/restorecon ] && /sbin/restorecon -rF /run
checkpath -d $RC_SVCDIR checkpath -d $RC_SVCDIR
checkpath -d -m 0775 -o root:uucp /run/lock checkpath -d -m 0775 -o root:uucp /run/lock