[yocto] [meta-selinux][PATCH 3/3] refpolicy: fix symlink policy.kern
wenzong.fan at windriver.com
wenzong.fan at windriver.com
Sun Jan 26 00:54:17 PST 2014
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
}
--
1.7.9.5
More information about the yocto
mailing list