From: Joe MacDonald <joe@deserted.net>
To: Philip Tricca <flihp@twobit.us>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-selinux][PATCH 1/4] Move common POLICY_* variables to refpolicy_common.inc
Date: Wed, 30 Oct 2013 10:22:08 -0400 [thread overview]
Message-ID: <20131030142207.GE3716@deserted.net> (raw)
In-Reply-To: <1383095496-6487-2-git-send-email-flihp@twobit.us>
[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]
[[yocto] [meta-selinux][PATCH 1/4] Move common POLICY_* variables to refpolicy_common.inc] On 13.10.30 (Wed 01:11) Philip Tricca wrote:
> Use default assignment to allow variables to be overriden by recipes
> that include refpolicy_common.inc
>
> Signed-off-by: Philip Tricca <flihp@twobit.us>
> ---
> recipes-security/refpolicy/refpolicy_common.inc | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
> index 0ca0b9d..65d679b 100644
> --- a/recipes-security/refpolicy/refpolicy_common.inc
> +++ b/recipes-security/refpolicy/refpolicy_common.inc
> @@ -24,6 +24,18 @@ inherit autotools pythonnative
>
> PARALLEL_MAKE = ""
>
> +POLICY_NAME ?= "${POLICY_TYPE}"
> +POLICY_DISTRO ?= "redhat"
> +POLICY_UBAC ?= "n"
> +POLICY_UNK_PERMS ?= "allow"
> +POLICY_DIRECT_INITRC ?= "n"
> +POLICY_MONOLITHIC ?= "n"
> +POLICY_CUSTOM_BUILDOPT ?= ""
> +POLICY_QUIET ?= "y"
> +POLICY_MLS_SENS = "16"
> +POLICY_MLS_CATS = "1024"
> +POLICY_MCS_CATS = "1024"
Any reason not to make these last three soft assignments as well?
They're unlikely to change and putting them here makes sense, but I can
also imagine someone wanting to use this as a base for creating a
simplified policy.
-J.
> +
> EXTRA_OEMAKE += "NAME=${POLICY_NAME} \
> TYPE=${POLICY_TYPE} \
> DISTRO=${POLICY_DISTRO} \
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2013-10-30 14:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 1:11 [meta-selinux][PATCH 0/4] refpolicy: Move common POLICY_* variables to refpolicy_common.inc Philip Tricca
2013-10-30 1:11 ` [meta-selinux][PATCH 1/4] " Philip Tricca
2013-10-30 14:22 ` Joe MacDonald [this message]
2013-10-30 14:49 ` Philip Tricca
2013-11-06 14:03 ` Philip Tricca
2013-11-06 14:11 ` Joe MacDonald
2013-10-30 1:11 ` [meta-selinux][PATCH 2/4] refpolicy-mcs: Use default variables from refpolicy_common.inc Philip Tricca
2013-10-30 1:11 ` [meta-selinux][PATCH 3/4] refpolicy-mls: " Philip Tricca
2013-10-30 1:11 ` [meta-selinux][PATCH 4/4] refpolicy-standard: " 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=20131030142207.GE3716@deserted.net \
--to=joe@deserted.net \
--cc=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.