[yocto] [meta-selinux][PATCH 3/3] refpolicy: fix symlink policy.kern

Pascal Ouyang xin.ouyang at windriver.com
Sun Jan 26 01:52:51 PST 2014


于 14-1-26 下午4:54, wenzong.fan at windriver.com 写道:
> From: Wenzong Fan <wenzong.fan at windriver.com>
> 
> It includes build host path, this does not work on target.
> 
> Signed-off-by: Wenzong Fan <wenzong.fan at 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



More information about the yocto mailing list