[yocto] [meta-selinux] Resend: Install policy headers and include them in the refpolicy dev package.
Joe MacDonald
joe at deserted.net
Fri Sep 27 11:07:05 PDT 2013
Also merged, thanks.
-J.
[[yocto] [meta-selinux] Resend: Install policy headers and include them in the refpolicy dev package.] On 13.09.26 (Thu 21:10) Philip Tricca wrote:
> 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 at twobit.us>
> ---
> recipes-security/refpolicy/refpolicy_common.inc | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> 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 \
> S = "${WORKDIR}/refpolicy"
>
> FILES_${PN} = "${sysconfdir}/selinux/${POLICY_NAME}/ \
> - ${datadir}/selinux/${POLICY_NAME}/"
> + ${datadir}/selinux/${POLICY_NAME}/*.pp"
> +FILES_${PN}-dev =+ "${datadir}/selinux/${POLICY_NAME}/include/"
>
> DEPENDS += "checkpolicy-native policycoreutils-native m4-native"
> RDEPENDS_${PN} += "policycoreutils selinux-config"
> @@ -75,4 +76,7 @@ EOF
>
> cat ${WORKDIR}/customizable_types >> \
> ${D}${sysconfdir}/selinux/${POLICY_NAME}/contexts/customizable_types
> +
> + # install policy headers
> + oe_runmake install-headers DESTDIR=${D}
> }
--
-Joe MacDonald.
:wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130927/de9c11f5/attachment.pgp>
More information about the yocto
mailing list