From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www.twobit.us (www.twobit.us [50.19.210.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F3A66E015C2 for ; Sun, 22 Sep 2013 21:25:43 -0700 (PDT) Received: from c-76-24-20-220.hsd1.ma.comcast.net ([76.24.20.220] helo=[10.79.148.145]) by www.twobit.us with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1VNxiQ-0002Zr-VB; Mon, 23 Sep 2013 04:25:43 +0000 Message-ID: <523FC2BD.5050905@twobit.us> Date: Mon, 23 Sep 2013 00:25:33 -0400 From: Philip Tricca User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130828 Icedove/17.0.8 MIME-Version: 1.0 To: yocto@yoctoproject.org References: <20130923035119.GA17078@longhaul.twobit.us> In-Reply-To: <20130923035119.GA17078@longhaul.twobit.us> X-Enigmail-Version: 1.5.1 X-SA-Exim-Connect-IP: 76.24.20.220 X-SA-Exim-Mail-From: flihp@twobit.us X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on www.twobit.us X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000) X-SA-Exim-Scanned: Yes (on www.twobit.us) Subject: Re: [meta-selinux] Stage SELinux config file in the sysroot. X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 04:25:44 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc'ing Mark. On 09/22/2013 11:51 PM, 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 > --- > 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} > +} >