diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2014-05-09 05:50:18 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2014-05-09 08:59:54 -0400 |
commit | 368f65a475069ed384d82be09c2515fb765e22ec (patch) | |
tree | 6eae0113294311e92c0cf2331a3e7e04d792e0b7 /recipes-core | |
parent | b14b21c0c5de0f206cc66bf90decc70ac156e650 (diff) | |
download | meta-selinux-368f65a475069ed384d82be09c2515fb765e22ec.tar.gz |
initscripts/checkroot.sh: restore file contexts for /run
The file contexts for /run is incorrect while running checkroot.sh
in boot time which causes mount fail to create new dir and file
in /run, so restore the security contexts in it.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/initscripts/initscripts_1.0.bbappend | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend index 7ec66ea..367cd6b 100644 --- a/recipes-core/initscripts/initscripts_1.0.bbappend +++ b/recipes-core/initscripts/initscripts_1.0.bbappend | |||
@@ -5,4 +5,6 @@ do_install_append () { | |||
5 | touch /var/log/lastlog | 5 | touch /var/log/lastlog |
6 | test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run | 6 | test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run |
7 | EOF | 7 | EOF |
8 | sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \ | ||
9 | ${D}${sysconfdir}/init.d/checkroot.sh | ||
8 | } | 10 | } |