All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Ouyang <xin.ouyang@windriver.com>
To: <wenzong.fan@windriver.com>, <yocto@yoctoproject.org>,
	<mark.hatle@windriver.com>
Subject: Re: [meta-selinux][PATCH 3/3] refpolicy: fix symlink policy.kern
Date: Sun, 26 Jan 2014 17:52:51 +0800	[thread overview]
Message-ID: <52E4DAF3.8050205@windriver.com> (raw)
In-Reply-To: <0e828c6ffb65a89e397f8bdb370f8d6f6da69458.1390725931.git.wenzong.fan@windriver.com>

于 14-1-26 下午4:54, wenzong.fan@windriver.com 写道:
> From: Wenzong Fan <wenzong.fan@windriver.com>
> 
> It includes build host path, this does not work on target.
> 
> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
> ---
>   recipes-security/refpolicy/refpolicy_common.inc |    4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
> index a71c5dd..6bf7830 100644
> --- a/recipes-security/refpolicy/refpolicy_common.inc
> +++ b/recipes-security/refpolicy/refpolicy_common.inc
> @@ -109,4 +109,8 @@ EOF
>   
>   	# install policy headers
>   	oe_runmake install-headers DESTDIR=${D}
> +
> +	# Fix symbol link policy.kern
> +	link_path=`readlink -f ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern`
> +	ln -sf ../../policy/`basename $link_path` ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern
>   }
> 

Change you commit message to:

    refpolicy: fix new symlink for policy.kern

    New 2.2 release of libsemanage removes policy.kern and replace with
    symlink from Dan Walsh. It is a host path while cross-compiling, so
    fix this path.

And merge. Thanks:)

-- 
- Pascal


  reply	other threads:[~2014-01-26  9:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26  8:54 [meta-selinux][PATCH 0/3] Some fix to udev/refpolicy wenzong.fan
2014-01-26  8:54 ` [meta-selinux][PATCH 1/3] udev/init: sync to latest poky version ae819671 wenzong.fan
2014-01-26  8:54 ` [meta-selinux][PATCH 2/3] refpolicy: fix real path for udevadm wenzong.fan
2014-01-26  8:54 ` [meta-selinux][PATCH 3/3] refpolicy: fix symlink policy.kern wenzong.fan
2014-01-26  9:52   ` Pascal Ouyang [this message]
2014-01-26  9:54 ` [meta-selinux][PATCH 0/3] Some fix to udev/refpolicy Pascal Ouyang

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=52E4DAF3.8050205@windriver.com \
    --to=xin.ouyang@windriver.com \
    --cc=mark.hatle@windriver.com \
    --cc=wenzong.fan@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.