All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Tricca <flihp@twobit.us>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: [meta-selinux] Install policy headers and include them in the refpolicy dev package.
Date: Tue, 17 Sep 2013 21:17:56 -0400	[thread overview]
Message-ID: <5238FF44.6000502@twobit.us> (raw)

This patch is pretty straight forward: All we do is call the
'install-headers' make target at the end of do_install. We then add
the interface 'include' directory to the dev package. This allows
projects that ship their own SELinux policy (not in the refpolicy)
to build against the refpolicy headers / interface files by using
the Makefile supplied by refpolicy.

Signed-off-by: Philip Tricca <flihp@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}
 }
--                                                                             
1.7.10.4


             reply	other threads:[~2013-09-18  1:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-18  1:17 Philip Tricca [this message]
2013-09-19  1:10 ` [meta-selinux] Install policy headers and include them in the refpolicy dev package Philip Tricca
2013-09-19  2:13   ` Philip Tricca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5238FF44.6000502@twobit.us \
    --to=flihp@twobit.us \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.