All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] initscripts/checkroot.sh: restore file contexts for /run
@ 2014-05-09  9:50 jackie.huang
  2014-05-09 13:22 ` Joe MacDonald
  0 siblings, 1 reply; 2+ messages in thread
From: jackie.huang @ 2014-05-09  9:50 UTC (permalink / raw)
  To: yocto

From: Jackie Huang <jackie.huang@windriver.com>

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>
---
 recipes-core/initscripts/initscripts_1.0.bbappend |    2 ++
 1 file changed, 2 insertions(+)

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 () {
 touch /var/log/lastlog
 test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run
 EOF
+	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \
+	    ${D}${sysconfdir}/init.d/checkroot.sh
 }
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-09 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09  9:50 [meta-selinux][PATCH] initscripts/checkroot.sh: restore file contexts for /run jackie.huang
2014-05-09 13:22 ` Joe MacDonald

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.