From: wenzong fan <wenzong.fan@windriver.com>
To: Pascal Ouyang <xin.ouyang@windriver.com>,
<yocto@yoctoproject.org>, <mark.hatle@windriver.com>
Subject: Re: [meta-selinux][PATCH 1/1] selinux: set policy-version to 28
Date: Mon, 27 Jan 2014 16:44:25 +0800 [thread overview]
Message-ID: <52E61C69.5030405@windriver.com> (raw)
In-Reply-To: <52E614F2.5060900@windriver.com>
On 01/27/2014 04:12 PM, Pascal Ouyang wrote:
> 于 14-1-27 下午2:52, wenzong.fan@windriver.com 写道:
>> From: Wenzong Fan <wenzong.fan@windriver.com>
>>
>> The default policy version of new selinux toolchains is 29, to
>> fit kernel 3.10.x, set it to 28.
>> ---
>> recipes-security/refpolicy/refpolicy_common.inc | 2 ++
>> recipes-security/selinux/libsemanage.inc | 3 +++
>> 2 files changed, 5 insertions(+)
>>
>> diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
>> index 6bf7830..fbf9441 100644
>> --- a/recipes-security/refpolicy/refpolicy_common.inc
>> +++ b/recipes-security/refpolicy/refpolicy_common.inc
>> @@ -76,6 +76,8 @@ args = -q -c \$@ \$<
>> path = ${STAGING_DIR_NATIVE}${sbindir_native}/sefcontext_compile
>> args = \$@
>> [end]
>> +
>> +policy-version = 28
>> EOF
>> mkdir -p ${D}${sysconfdir}/selinux/${POLICY_NAME}/policy
>> mkdir -p ${D}${sysconfdir}/selinux/${POLICY_NAME}/modules/active/modules
>> diff --git a/recipes-security/selinux/libsemanage.inc b/recipes-security/selinux/libsemanage.inc
>> index 5e90c26..799d864 100644
>> --- a/recipes-security/selinux/libsemanage.inc
>> +++ b/recipes-security/selinux/libsemanage.inc
>> @@ -41,6 +41,9 @@ do_install() {
>> DESTDIR=${D} \
>> PYLIBVER='python${PYTHON_BASEVERSION}' \
>> PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
>> +
>> + # Update "policy-version" for semanage.conf
>> + echo "policy-version = 28" >> "${D}/etc/selinux/semanage.conf"
>
> please use this instead. Thanks.
>
> sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 28/' \
> ${D}/etc/selinux/semanage.conf
>
>> }
>>
>> BBCLASSEXTEND = "native"
Branch updated, please help to merge:
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/policy-version
Thanks
Wenzong
>>
>
>
next prev parent reply other threads:[~2014-01-27 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 6:52 [meta-selinux][PATCH 0/1] selinux: set policy-version to 28 wenzong.fan
2014-01-27 6:52 ` [meta-selinux][PATCH 1/1] " wenzong.fan
2014-01-27 8:12 ` Pascal Ouyang
2014-01-27 8:44 ` wenzong fan [this message]
2014-01-28 7:21 ` Pascal Ouyang
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=52E61C69.5030405@windriver.com \
--to=wenzong.fan@windriver.com \
--cc=mark.hatle@windriver.com \
--cc=xin.ouyang@windriver.com \
--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.