[yocto] [meta-selinux] Stage SELinux config file in the sysroot.
Joe MacDonald
joe at deserted.net
Fri Sep 27 10:55:12 PDT 2013
Merged, thanks.
-J.
[[yocto] [meta-selinux] Stage SELinux config file in the sysroot.] On 13.09.23 (Mon 03:51) Philip Tricca wrote:
> 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 at twobit.us>
> ---
> recipes-security/selinux/selinux-config_0.1.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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}
> install -m 0644 ${WORKDIR}/config ${D}/${sysconfdir}/selinux/
> }
>
> +sysroot_stage_all_append () {
> + sysroot_stage_dir ${D}${sysconfdir} ${SYSROOT_DESTDIR}${sysconfdir}
> +}
--
-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/9690633d/attachment.pgp>
More information about the yocto
mailing list