diff options
author | Philip Tricca <flihp@twobit.us> | 2013-09-26 21:10:41 +0000 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-09-27 13:53:58 -0400 |
commit | c531a7a859762d510dfadf487efd9d283038205c (patch) | |
tree | 3d9c62e51522c8b2fe713ffe6f12c6bc261071ec | |
parent | 823a1f0f8529241f4efdba0debeef6e83eea1bee (diff) | |
download | meta-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.inc | 6 |
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 \ | |||
12 | S = "${WORKDIR}/refpolicy" | 12 | S = "${WORKDIR}/refpolicy" |
13 | 13 | ||
14 | FILES_${PN} = "${sysconfdir}/selinux/${POLICY_NAME}/ \ | 14 | FILES_${PN} = "${sysconfdir}/selinux/${POLICY_NAME}/ \ |
15 | ${datadir}/selinux/${POLICY_NAME}/" | 15 | ${datadir}/selinux/${POLICY_NAME}/*.pp" |
16 | FILES_${PN}-dev =+ "${datadir}/selinux/${POLICY_NAME}/include/" | ||
16 | 17 | ||
17 | DEPENDS += "checkpolicy-native policycoreutils-native m4-native" | 18 | DEPENDS += "checkpolicy-native policycoreutils-native m4-native" |
18 | RDEPENDS_${PN} += "policycoreutils selinux-config" | 19 | RDEPENDS_${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 | } |