From: Wenzong Fan <wenzong....@windriver.com> It includes build host path, this does not work on target.
Signed-off-by: Wenzong Fan <wenzong....@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 } -- 1.7.9.5 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto