From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] Associate attribute with another attribute?
Date: Tue, 27 May 2014 08:40:52 -0400 [thread overview]
Message-ID: <538487D4.6000704@tresys.com> (raw)
In-Reply-To: <1400930074.20666.4.camel@x220.localdomain>
On 05/24/2014 07:14 AM, Dominick Grift wrote:
> On Sat, 2014-05-24 at 20:28 +1000, Mladen Sekara wrote:
>> Can attribute be associated with another attribute, the same way that is
>> done with type(s)?
>>
>> eg. If we associate attributes with types using: "type mytype1_t,
>> my_attribute1, my_attribute2...;",
>>
>> can we associate attributes with attributes using: "attribute
>> my_attribute0, my_attribute1, my_attribute2...;", or something similar?
>>
>
> Not with reference policy but it is possible with CIL policy.
>
> Do not ask me how they achieve that though because i do not know.
>
> I suppose that they expand the attributes before the resulting policy
> gets translated to policy the kernel understands because i think it is a
> limitation is the kernel policy language.
>
> Not that it matters much though, it is handy nevertheless.
Eventually I'd like to make a proper refpolicy high level language on top of CIL, when CIL gets merged. Then it would allow all of the nice features in refpolicy that we all want.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2014-05-27 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-24 10:28 [refpolicy] Associate attribute with another attribute? Mladen Sekara
2014-05-24 10:29 ` Daniel J Walsh
2014-05-25 4:10 ` Mladen Sekara
2014-05-24 11:14 ` Dominick Grift
2014-05-27 12:40 ` Christopher J. PeBenito [this message]
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=538487D4.6000704@tresys.com \
--to=cpebenito@tresys.com \
--cc=refpolicy@oss.tresys.com \
/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.