commit: 5bb6f9aa318a6d0507971b74d88c3fd2803bae4b Author: Jason Zaman <jason <AT> perfinion <DOT> com> AuthorDate: Wed Feb 28 18:41:54 2018 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Feb 28 18:42:58 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5bb6f9aa
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