diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2014-01-26 03:54:17 -0500 |
---|---|---|
committer | Xin Ouyang <xin.ouyang@windriver.com> | 2014-01-26 17:44:56 +0800 |
commit | 8ce3b9d0d20c79e0d6bba325f6eedbd11febc101 (patch) | |
tree | 4adc74e052b7298859009e43cb27d2ea9311a965 | |
parent | 6f8d2d94a0faf75e92560bae1b303bf142534008 (diff) | |
download | meta-selinux-8ce3b9d0d20c79e0d6bba325f6eedbd11febc101.tar.gz |
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 <wenzong.fan@windriver.com>
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
-rw-r--r-- | recipes-security/refpolicy/refpolicy_common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
109 | 109 | ||
110 | # install policy headers | 110 | # install policy headers |
111 | oe_runmake install-headers DESTDIR=${D} | 111 | oe_runmake install-headers DESTDIR=${D} |
112 | |||
113 | # Fix symbol link policy.kern | ||
114 | link_path=`readlink -f ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern` | ||
115 | ln -sf ../../policy/`basename $link_path` ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/policy.kern | ||
112 | } | 116 | } |