From 8ce3b9d0d20c79e0d6bba325f6eedbd11febc101 Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Sun, 26 Jan 2014 03:54:17 -0500 Subject: 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. Signed-off-by: Wenzong Fan Signed-off-by: Xin Ouyang --- 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 } -- cgit v1.2.3-54-g00ecf