diff options
author | Jason Zaman <jason@perfinion.com> | 2018-02-28 12:41:54 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-02-28 12:42:58 -0600 |
commit | 5bb6f9aa318a6d0507971b74d88c3fd2803bae4b (patch) | |
tree | aa3614153d62dd2c1bdcb0701317d74af1adcc56 /sh | |
parent | 1ab8541a6ccb9d72c6faeaf2d616fc49f6cdfaf6 (diff) |
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.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/init.sh.Linux.in | 1 |
1 files changed, 1 insertions, 0 deletions
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 |