From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: HarryCiao <harrytaurus2002@hotmail.com>
Cc: <refpolicy@oss1.tresys.com>, <selinux@tycho.nsa.gov>
Subject: Re: [refpolicy] My patchset to test "Separating tunables from booleans"
Date: Tue, 23 Aug 2011 09:44:32 -0400 [thread overview]
Message-ID: <4E53AEC0.7040009@tresys.com> (raw)
In-Reply-To: <SNT139-W51733746CAFD339C4E9177AB2E0@phx.gbl>
On 08/23/11 06:27, HarryCiao wrote:
> This is the refpolicy patchset to test along with new toolchain feature
> of separating tunables from booleans, generally speaking a "tunable"
> keyword is introduced and made use of by tunable_policy(), whereas a new
> boolean_policy() macro would make use of the "bool" keyword.
>
> tunable is indeed a boolean, except that the COND_BOOL_FLAGS_TUNABLE bit
> would be set in the newly added member of flags in the cond_bool_datum_t
> structure.
>
> Once the new toolchain feature is welcomed and merged, we could change
> refpolicy to shrink policy.X size significantly.
>
> Any comments or suggestions as for how to better this new toolchain
> feature are greatly welcomed.
To make sure I understand correctly, a tunable block will have the same
token in the raw policy as runtime conditional blocks? e.g.
tunable foo false;
if (foo) {
....
}
If tunable blocks use the same token, I think Refpolicy would just drop
the tunable_policy() macro.
There are no examples of this in Refpolicy, but can you mix Booleans and
tunables in an expression? e.g.
tunable foo true;
boolean bar true;
if (foo || bar) {
....
}
I'd say its not a requirement, I'm just trying to make sure I understand
the features.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
WARNING: multiple messages have this Message-ID (diff)
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] My patchset to test "Separating tunables from booleans"
Date: Tue, 23 Aug 2011 09:44:32 -0400 [thread overview]
Message-ID: <4E53AEC0.7040009@tresys.com> (raw)
In-Reply-To: <SNT139-W51733746CAFD339C4E9177AB2E0@phx.gbl>
On 08/23/11 06:27, HarryCiao wrote:
> This is the refpolicy patchset to test along with new toolchain feature
> of separating tunables from booleans, generally speaking a "tunable"
> keyword is introduced and made use of by tunable_policy(), whereas a new
> boolean_policy() macro would make use of the "bool" keyword.
>
> tunable is indeed a boolean, except that the COND_BOOL_FLAGS_TUNABLE bit
> would be set in the newly added member of flags in the cond_bool_datum_t
> structure.
>
> Once the new toolchain feature is welcomed and merged, we could change
> refpolicy to shrink policy.X size significantly.
>
> Any comments or suggestions as for how to better this new toolchain
> feature are greatly welcomed.
To make sure I understand correctly, a tunable block will have the same
token in the raw policy as runtime conditional blocks? e.g.
tunable foo false;
if (foo) {
....
}
If tunable blocks use the same token, I think Refpolicy would just drop
the tunable_policy() macro.
There are no examples of this in Refpolicy, but can you mix Booleans and
tunables in an expression? e.g.
tunable foo true;
boolean bar true;
if (foo || bar) {
....
}
I'd say its not a requirement, I'm just trying to make sure I understand
the features.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2011-08-23 13:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-23 10:27 [refpolicy] My patchset to test "Separating tunables from booleans" HarryCiao
2011-08-23 10:27 ` HarryCiao
2011-08-23 13:44 ` Christopher J. PeBenito [this message]
2011-08-23 13:44 ` Christopher J. PeBenito
2011-08-24 5:39 ` HarryCiao
2011-08-24 5:39 ` HarryCiao
2011-08-24 12:23 ` Christopher J. PeBenito
2011-08-24 12:23 ` Christopher J. PeBenito
2011-08-25 3:10 ` HarryCiao
2011-08-25 3:10 ` HarryCiao
2011-08-25 11:16 ` Christopher J. PeBenito
2011-08-25 11:16 ` Christopher J. PeBenito
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=4E53AEC0.7040009@tresys.com \
--to=cpebenito@tresys.com \
--cc=harrytaurus2002@hotmail.com \
--cc=refpolicy@oss1.tresys.com \
--cc=selinux@tycho.nsa.gov \
/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.