[yocto] [meta-selinux][PATCH 2/3] selinux-init: update for systemd
Shrikant Bobade
bobadeshrikant at gmail.com
Mon Jan 5 03:43:30 PST 2015
Hello,
Please provide review comments or feedback if any, It will be a great
help.
@Ping.
Thanks
Shrikant
On Wed, Nov 19, 2014 at 1:43 PM, Shrikant Bobade <bobadeshrikant at gmail.com>
wrote:
> From: Shrikant Bobade <Shrikant_Bobade at mentor.com>
>
> selinux-init.sh updated to reboot system
> normally to fix the labelling during systemd
> execution. Due to force reboot labelling won't
> be proper and system continuously reboot to
> label it like first time boot.
>
> Signed-off-by: Shrikant Bobade <Shrikant_Bobade at mentor.com>
> ---
> .../selinux/selinux-config/selinux-init.sh | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-security/selinux/selinux-config/selinux-init.sh
> b/recipes-security/selinux/selinux-config/selinux-init.sh
> index 9aaf454..f9f0914 100644
> --- a/recipes-security/selinux/selinux-config/selinux-init.sh
> +++ b/recipes-security/selinux/selinux-config/selinux-init.sh
> @@ -48,7 +48,7 @@ if [ -f /.autorelabel ]; then
> ${FIXFILES} -F -f relabel
> /bin/rm -f /.autorelabel
> echo " * Relabel done, rebooting the system."
> - /sbin/reboot -f
> + /sbin/reboot
> fi
>
> # If first booting, the security context type of init would be
> @@ -62,7 +62,7 @@ if [ "`${SECON} -t --pid 1`" = "kernel_t" ]; then
> ${RESTORECON} -RF /
> ${RESTORECON} -F /
> echo " * Relabel done, rebooting the system."
> - /sbin/reboot -f
> + /sbin/reboot
> fi
>
> # Now, we should relabel /dev for most services.
> --
> 1.7.9.5
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150105/b5681d4b/attachment.html>
More information about the yocto
mailing list