From 5bb6f9aa318a6d0507971b74d88c3fd2803bae4b Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 28 Feb 2018 12:41:54 -0600 Subject: [PATCH] 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. --- sh/init.sh.Linux.in | 1 + 1 file changed, 1 insertion(+) diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index b07463b3..7ee25b57 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -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