1 |
commit: 5bb6f9aa318a6d0507971b74d88c3fd2803bae4b |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Wed Feb 28 18:41:54 2018 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 28 18:42:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5bb6f9aa |
7 |
|
8 |
init.sh: apply SELinux label for /run early in boot |
9 |
|
10 |
Some initramfs mount /run which then ends up with the wrong labels. |
11 |
Force relabel all of /run right after its mounted to fix. |
12 |
|
13 |
sh/init.sh.Linux.in | 1 + |
14 |
1 file changed, 1 insertion(+) |
15 |
|
16 |
diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in |
17 |
index b07463b3..7ee25b57 100644 |
18 |
--- a/sh/init.sh.Linux.in |
19 |
+++ b/sh/init.sh.Linux.in |
20 |
@@ -83,6 +83,7 @@ elif ! mountinfo -q /run; then |
21 |
fi |
22 |
fi |
23 |
|
24 |
+[ -x /sbin/restorecon ] && /sbin/restorecon -rF /run |
25 |
checkpath -d $RC_SVCDIR |
26 |
checkpath -d -m 0775 -o root:uucp /run/lock |