summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Tricca <flihp@twobit.us>2013-09-23 03:51:19 +0000
committerJoe MacDonald <joe@deserted.net>2013-09-25 10:52:12 -0400
commit1f23fb218e55000b8f4bc8c47509631ffcc28445 (patch)
treeac939da5640fe4135ffee77a60725bd558c029bc
parent31abc748e32c57b3697fa76e7cf1cc6a298b13b0 (diff)
downloadmeta-selinux-1f23fb218e55000b8f4bc8c47509631ffcc28445.tar.gz
Stage SELinux config file in the sysroot.
This is needed to build policy modules outside of the refpolicy. Policy module build systems need to determine the name of the policy that will be in effect on the target host. This allows them to locate the policy headers that will be under $sysroot/usr/share/selinux/$name/include. Given that there *could* be more than one policy installed in the sysroot we can't assume that the policy installed there is the only policy to build against. Signed-off-by: Philip Tricca <flihp@twobit.us> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-security/selinux/selinux-config_0.1.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux-config_0.1.bb b/recipes-security/selinux/selinux-config_0.1.bb
index 9521dcf..ad0d647 100644
--- a/recipes-security/selinux/selinux-config_0.1.bb
+++ b/recipes-security/selinux/selinux-config_0.1.bb
@@ -43,3 +43,6 @@ SELINUXTYPE=${DEFAULT_POLICY}
43 install -m 0644 ${WORKDIR}/config ${D}/${sysconfdir}/selinux/ 43 install -m 0644 ${WORKDIR}/config ${D}/${sysconfdir}/selinux/
44} 44}
45 45
46sysroot_stage_all_append () {
47 sysroot_stage_dir ${D}${sysconfdir} ${SYSROOT_DESTDIR}${sysconfdir}
48}