All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe MacDonald <joe@deserted.net>
To: jackie.huang@windriver.com
Cc: yocto@yoctoproject.org
Subject: Re: [meta-selinux][PATCH] initscripts/checkroot.sh: restore file contexts for /run
Date: Fri, 9 May 2014 09:22:54 -0400	[thread overview]
Message-ID: <20140509132252.GA3770@deserted.net> (raw)
In-Reply-To: <1399629018-9192-1-git-send-email-jackie.huang@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

Merged, thanks Jackie.

-J.

[[yocto] [meta-selinux][PATCH] initscripts/checkroot.sh: restore file contexts for /run] On 14.05.09 (Fri 05:50) jackie.huang@windriver.com wrote:

> 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
> 
-- 
-Joe MacDonald.
:wq

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

      reply	other threads:[~2014-05-09 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140509132252.GA3770@deserted.net \
    --to=joe@deserted.net \
    --cc=jackie.huang@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.