summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Tricca <flihp@twobit.us>2013-09-26 21:10:41 +0000
committerJoe MacDonald <joe@deserted.net>2013-09-27 13:53:58 -0400
commitc531a7a859762d510dfadf487efd9d283038205c (patch)
tree3d9c62e51522c8b2fe713ffe6f12c6bc261071ec
parent823a1f0f8529241f4efdba0debeef6e83eea1bee (diff)
downloadmeta-selinux-c531a7a859762d510dfadf487efd9d283038205c.tar.gz
Resend: Install policy headers and include them in the refpolicy dev package.
To do this we call the 'install-headers' make target at the end of do_install. We then add the interface 'include' directory to the dev package leaving only the policy modules in the main policy package. This allows projects that ship their own SELinux policy (not in the refpolicy) to build the refpolicy headers / interface files by using the Makefile supplied by refpolicy. Signed-off-by: Philip Tricca <flihp@twobit.us> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-security/refpolicy/refpolicy_common.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index 2c8891a..0f9f83b 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -12,7 +12,8 @@ SRC_URI += "file://customizable_types \
12S = "${WORKDIR}/refpolicy" 12S = "${WORKDIR}/refpolicy"
13 13
14FILES_${PN} = "${sysconfdir}/selinux/${POLICY_NAME}/ \ 14FILES_${PN} = "${sysconfdir}/selinux/${POLICY_NAME}/ \
15 ${datadir}/selinux/${POLICY_NAME}/" 15 ${datadir}/selinux/${POLICY_NAME}/*.pp"
16FILES_${PN}-dev =+ "${datadir}/selinux/${POLICY_NAME}/include/"
16 17
17DEPENDS += "checkpolicy-native policycoreutils-native m4-native" 18DEPENDS += "checkpolicy-native policycoreutils-native m4-native"
18RDEPENDS_${PN} += "policycoreutils selinux-config" 19RDEPENDS_${PN} += "policycoreutils selinux-config"
@@ -75,4 +76,7 @@ EOF
75 76
76 cat ${WORKDIR}/customizable_types >> \ 77 cat ${WORKDIR}/customizable_types >> \
77 ${D}${sysconfdir}/selinux/${POLICY_NAME}/contexts/customizable_types 78 ${D}${sysconfdir}/selinux/${POLICY_NAME}/contexts/customizable_types
79
80 # install policy headers
81 oe_runmake install-headers DESTDIR=${D}
78} 82}